• Neethu Divya
  • NEWBIE
  • 10 Points
  • Member since 2014

  • Chatter
    Feed
  • 0
    Best Answers
  • 1
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 1
    Replies
Hi,
I am trying to develop a visual force page in which the list of records should be displayed on the click of the object name.
The same functionality is working fine with the check box,but i want it to be done with links.
This is my code which is displaying the list of records when the check box is checked.

<apex:page controller="multirecords" >
<apex:form >
<apex:messages />
<apex:pageBlock id="theBlock">                                                    
<apex:inputCheckbox value="{!Check}" required="false">
<apex:actionSupport event="onclick" rerender="theBlock"/>
</apex:inputCheckbox>
         
<apex:outputLabel value="View Job Application"  style="font-weight:bold;"></apex:outputLabel>&nbsp;<br/>
<apex:inputCheckbox value="{!Check1}" required="false">
<apex:actionSupport event="onclick" rerender="theBlock"/>
</apex:inputCheckbox>
<apex:outputLabel value="View Positions"  style="font-weight:bold;"></apex:outputLabel>&nbsp;<br/>
<!--  <apex:commandLink value="Positions"  action="{!display}" id="position" rendered="{!inputmode}">
<apex:actionSupport event="onclick" rerender="theBlock"/>
</apex:commandLink>-->
           
<apex:pageBlock title="Job Application" rendered="{!(Check == true)}">          
<apex:pageblockTable value="{!ja}" var="a">
<apex:column value="{!a.Name}"/>
</apex:pageblockTable><br/>
</apex:pageBlock>                                
<apex:pageBlock title="Position" rendered="{!(Check1 == true)}">                
<apex:pageblockTable value="{!pos}" var="p">
<apex:column value="{!p.Name}"/>
</apex:pageblockTable>
</apex:pageBlock>     
</apex:pageBlock>    
</apex:form>
</apex:page>

---Controller--
public class multirecords {

      
    public List<Job_Application__c> ja {get; set;}
    public List<Position__c> pos {get; set;}
    public List<Review__c> rev {get; set;}
    public boolean Check{get;set;}
    public boolean Check1{get;set;}
    public boolean Check2{get;set;}
    public multirecords()
    {
       
       ja = [SELECT Name FROM Job_Application__c];
       pos = [SELECT Name FROM Position__c];
    }
          

}
Hi,
I am trying to develop a visual force page in which the list of records should be displayed on the click of the object name.
The same functionality is working fine with the check box,but i want it to be done with links.
This is my code which is displaying the list of records when the check box is checked.

<apex:page controller="multirecords" >
<apex:form >
<apex:messages />
<apex:pageBlock id="theBlock">                                                    
<apex:inputCheckbox value="{!Check}" required="false">
<apex:actionSupport event="onclick" rerender="theBlock"/>
</apex:inputCheckbox>
         
<apex:outputLabel value="View Job Application"  style="font-weight:bold;"></apex:outputLabel>&nbsp;<br/>
<apex:inputCheckbox value="{!Check1}" required="false">
<apex:actionSupport event="onclick" rerender="theBlock"/>
</apex:inputCheckbox>
<apex:outputLabel value="View Positions"  style="font-weight:bold;"></apex:outputLabel>&nbsp;<br/>
<!--  <apex:commandLink value="Positions"  action="{!display}" id="position" rendered="{!inputmode}">
<apex:actionSupport event="onclick" rerender="theBlock"/>
</apex:commandLink>-->
           
<apex:pageBlock title="Job Application" rendered="{!(Check == true)}">          
<apex:pageblockTable value="{!ja}" var="a">
<apex:column value="{!a.Name}"/>
</apex:pageblockTable><br/>
</apex:pageBlock>                                
<apex:pageBlock title="Position" rendered="{!(Check1 == true)}">                
<apex:pageblockTable value="{!pos}" var="p">
<apex:column value="{!p.Name}"/>
</apex:pageblockTable>
</apex:pageBlock>     
</apex:pageBlock>    
</apex:form>
</apex:page>

---Controller--
public class multirecords {

      
    public List<Job_Application__c> ja {get; set;}
    public List<Position__c> pos {get; set;}
    public List<Review__c> rev {get; set;}
    public boolean Check{get;set;}
    public boolean Check1{get;set;}
    public boolean Check2{get;set;}
    public multirecords()
    {
       
       ja = [SELECT Name FROM Job_Application__c];
       pos = [SELECT Name FROM Position__c];
    }
          

}
Hi,
I am trying to develop a visual force page in which the list of records should be displayed on the click of the object name.
The same functionality is working fine with the check box,but i want it to be done with links.
This is my code which is displaying the list of records when the check box is checked.

<apex:page controller="multirecords" >
<apex:form >
<apex:messages />
<apex:pageBlock id="theBlock">                                                    
<apex:inputCheckbox value="{!Check}" required="false">
<apex:actionSupport event="onclick" rerender="theBlock"/>
</apex:inputCheckbox>
         
<apex:outputLabel value="View Job Application"  style="font-weight:bold;"></apex:outputLabel>&nbsp;<br/>
<apex:inputCheckbox value="{!Check1}" required="false">
<apex:actionSupport event="onclick" rerender="theBlock"/>
</apex:inputCheckbox>
<apex:outputLabel value="View Positions"  style="font-weight:bold;"></apex:outputLabel>&nbsp;<br/>
<!--  <apex:commandLink value="Positions"  action="{!display}" id="position" rendered="{!inputmode}">
<apex:actionSupport event="onclick" rerender="theBlock"/>
</apex:commandLink>-->
           
<apex:pageBlock title="Job Application" rendered="{!(Check == true)}">          
<apex:pageblockTable value="{!ja}" var="a">
<apex:column value="{!a.Name}"/>
</apex:pageblockTable><br/>
</apex:pageBlock>                                
<apex:pageBlock title="Position" rendered="{!(Check1 == true)}">                
<apex:pageblockTable value="{!pos}" var="p">
<apex:column value="{!p.Name}"/>
</apex:pageblockTable>
</apex:pageBlock>     
</apex:pageBlock>    
</apex:form>
</apex:page>

---Controller--
public class multirecords {

      
    public List<Job_Application__c> ja {get; set;}
    public List<Position__c> pos {get; set;}
    public List<Review__c> rev {get; set;}
    public boolean Check{get;set;}
    public boolean Check1{get;set;}
    public boolean Check2{get;set;}
    public multirecords()
    {
       
       ja = [SELECT Name FROM Job_Application__c];
       pos = [SELECT Name FROM Position__c];
    }
          

}