function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Nagarjun TNagarjun 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>
NagendraNagendra (Salesforce Developers) 
Hi Nagarjuna,

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
Rajesh3699Rajesh3699
Hi 

Hope this helps you,
<apex:column>
    <apex:outputLink value="/objectId" target="_blank">{!ObjectName}</apex:outputLink>
</apex:column>

Thank You,
Rajesh