I have a commandLink
in pageBlockTable
. When I click it, I want the dataTable
in the same pageBlockTable
to render.
At present I can render all records when I click on the commandLink
.
My requirement is to render just that particular record's dataTable
.
Here is my VF page.
<apex:page controller="repeatcontroller1" sidebar="false">
<apex:form >
<apex:pageBlock >
<apex:pageBlockTable value="{!CallplanAccounts}" var="status" border="0" cellpadding="6" cellspacing="13" columnsWidth="3">
<apex:column headerValue="Name">
{!status.acc.Name}
</apex:column>
<apex:column headerValue="Status">
{!status.acc.Active__c}
</apex:column>
<apex:column >
<apex:commandLink action="{!Callstatus}" id="renderit" >
CallString<apex:param name="cmid" value="{!status.acc.id}" assignTo="{!approveid}" />
</apex:commandLink> <br/>
<apex:pageblocksection collapsible="false" rendered="{!visible_comment =='show'}" >
<apex:dataTable value="{!status.acc.Call__r}" var="cm" >
<apex:column headerValue="Callstring name" >
{!cm.name}
</apex:column>
<apex:column headerValue="Origianl values" >
{!cm.Original_Call__c}
</apex:column>
<apex:column headerValue="Updated values" >
<apex:outputField value="{!cm.Updated_Call__c }" >
<apex:inlineEditSupport event="ondblClick" showOnEdit="saveButton" / >
</apex:outputfield>
</apex:column>
</apex:dataTable>
</apex:pageblocksection>
</apex:column>
</apex:pageBlockTable>
</apex:pageBlock>
</apex:form>