I got stuck in a scenario. I have a pageBlockTable
and in that I have 3 columns with a dataTable
in the 3rd column. I have a commandLink
in that column, and when I click on that all records are rendered, but I need to render only that particular record's dataTable
.
Please have a look at the Visualforce page. Can you let me know how to render according to a particular record?
<apex:page controller="repeatcontroller" >
<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:outputPanel rendered="{!visible_comment =='show'}" >
<apex:dataTable value="{!status.acc.Call_Strings__r}" var="cm" >
<apex:column headerValue="Callstring name" >
{!cm.name}
</apex:column>
<apex:column headerValue="Origianl values" >
{!cm.Original_CallString__c}
</apex:column>
<apex:column headerValue="Updated values" >
<apex:outputField value="{!cm.Updated_CallString__c }" >
<apex:inlineEditSupport event="ondblClick" showOnEdit="saveButton" / >
</apex:outputfield>
</apex:column>
</apex:dataTable>
</apex:outputPanel>
</apex:column>
</apex:pageBlockTable>
</apex:pageBlock>
</apex:form>
</apex:page>