You need to sign in to do that
Don't have an account?
mahesh p 54
I had a custom field named Broker Name for which i set hyperlink when i click on that broker name hyperlink it should navigate to details of that broker name object is that possible?
<apex:page standardController="Broker__c" recordSetVar="Brokers">
<apex:form>
<apex:pageBlock >
<apex:pageBlockTable value="{!Brokers}" var="b">
<apex:column >
<apex:commandLink action='/apex/BrokerVisualForcePage'>
{!b.name}
<apex:param name="bid" value="{!b.id}" />
</apex:commandLink>
</apex:column>
</apex:pageBlockTable>
</apex:pageBlock>
<apex:pageBlock>
<apex:detail subject="{!$CurrentPage.parameters.bid}" id="detid"/>
</apex:pageBlock>
</apex:form>
</apex:page>
<apex:form>
<apex:pageBlock >
<apex:pageBlockTable value="{!Brokers}" var="b">
<apex:column >
<apex:commandLink action='/apex/BrokerVisualForcePage'>
{!b.name}
<apex:param name="bid" value="{!b.id}" />
</apex:commandLink>
</apex:column>
</apex:pageBlockTable>
</apex:pageBlock>
<apex:pageBlock>
<apex:detail subject="{!$CurrentPage.parameters.bid}" id="detid"/>
</apex:pageBlock>
</apex:form>
</apex:page>
This will be redirecting you to the object detail page.
Thanks.
All Answers
This will be redirecting you to the object detail page.
Thanks.
I trust you are doing very well.
Please try below code:
I hope it helps you.
Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in future.
Thanks and Regards,
Khan Anas