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
Shephali SwarnkarShephali Swarnkar 

Different forms within a page

Hi All,
   I have created a report in Table form.In that table i need to make some values  link and by clicking that link i need to show some other list view within same page in other form.is it possible???
below is my fuction for list view:
/*public void assigncontact()
 {
 num_con=[select Name, Email, MobilePhone, Phone from Contact where owner.alias=: Alias];     
 }*/

//My table row where i have made it a link
<apex:page>
<apex:form>
<tr>
    <td>Number of Contacts Assigned</td>
  <td> <apex:outputLink onclick="assigncontact()"> {!asn}</apex:outputLink></td>
    <td>{!asn_per}</td>
  </tr>
​</apex:form>
<!-- //below is my second form where i need to display the records -->
<apex:form >
  <apex:pageBlock >
<apex:pageBlockTable value="{!num_con}" var="cn">
<apex:column value="{!cn.Name}"/>
<apex:column value="{!cn.Email}"/>
<apex:column value="{!cn.mobilephone}"/>
<apex:column value="{!cn.phone}"/>
</apex:pageBlockTable>
</apex:pageBlock>
  </apex:form>
</apex:page>
Question: How to call the function and how to render that form so that after clicking on that value(link) the second form will appear within the same page.
Balaji BondarBalaji Bondar
Hi Shephali,

Use nested table as per below example :
http://salesforce.stackexchange.com/questions/3836/how-to-use-nested-repeat-function-in-visualforce-page