You need to sign in to do that
Don't have an account?
Nagarjun T
command link to open detail page in controller
<apex:page controller="schoollistpage_controller" sidebar="false">
<apex:sectionHeader title="Schools List"/>
<apex:form >
<apex:pageBlock >
<apex:commandButton value="Hyd Location" action="{!hydmthd}"/>
<apex:pageBlockTable value="{!schlst}" var="sch">
<apex:column value="{!sch.name}"/>
<apex:commandLink onclick="window.open('/apex/schooldetailpage_controller?id={!sch.ID}')">
{!sch.Name}
</apex:commandLink>
<apex:column value="{!sch.Location__c}"/>
<apex:column value="{!sch.Principal__c}"/>
<apex:column value="{!sch.Total_Students__c}"/>
</apex:pageBlockTable>
</apex:pageBlock>
</apex:form>
</apex:page>
<apex:sectionHeader title="Schools List"/>
<apex:form >
<apex:pageBlock >
<apex:commandButton value="Hyd Location" action="{!hydmthd}"/>
<apex:pageBlockTable value="{!schlst}" var="sch">
<apex:column value="{!sch.name}"/>
<apex:commandLink onclick="window.open('/apex/schooldetailpage_controller?id={!sch.ID}')">
{!sch.Name}
</apex:commandLink>
<apex:column value="{!sch.Location__c}"/>
<apex:column value="{!sch.Principal__c}"/>
<apex:column value="{!sch.Total_Students__c}"/>
</apex:pageBlockTable>
</apex:pageBlock>
</apex:form>
</apex:page>
Sorry for this issue you are encountering.
Could you please let us know what is the issue you are facing.
May I suggest you please post the code snippet of your apex controller so that we can look into it and can help you accordingly.
Happy to help further.
Thanks,
Nagendra
Hope this helps you,
<apex:column>
<apex:outputLink value="/objectId" target="_blank">{!ObjectName}</apex:outputLink>
</apex:column>
Thank You,
Rajesh