You need to sign in to do that
Don't have an account?
Raghu Nani
how to insert the data using repeat
<apex:repeat value="{!FormList}" var="f">
<apex:variable var="count" value="{!0}" />
<apex:repeat value="{!f.categories}" var="c">
<apex:repeat value="{!c.tasks__r}" var="t" >
<tr>
<td>{!t.Task_Name__c}</td>
<td><apex:inputField value="{!f.siteSelectionChilds[count].LQ_Owner_Responsible__c}" /></td>
<td><apex:inputField value="{!f.siteSelectionChilds[count].LQ_Date_Completed__c}" /></td>
<td><apex:inputField value="{!f.siteSelectionChilds[count].LQ_Comments__c}"/></td>
<apex:variable var="count" value="{!count+1}" />
</tr>
</apex:repeat>
</apex:repeat>
</apex:repeat>
hi above is my code in loop i am trying to insert the siteSelectionChilds data but i am unable to get the entered values to my apex class pls suggest any one
<apex:variable var="count" value="{!0}" />
<apex:repeat value="{!f.categories}" var="c">
<apex:repeat value="{!c.tasks__r}" var="t" >
<tr>
<td>{!t.Task_Name__c}</td>
<td><apex:inputField value="{!f.siteSelectionChilds[count].LQ_Owner_Responsible__c}" /></td>
<td><apex:inputField value="{!f.siteSelectionChilds[count].LQ_Date_Completed__c}" /></td>
<td><apex:inputField value="{!f.siteSelectionChilds[count].LQ_Comments__c}"/></td>
<apex:variable var="count" value="{!count+1}" />
</tr>
</apex:repeat>
</apex:repeat>
</apex:repeat>
hi above is my code in loop i am trying to insert the siteSelectionChilds data but i am unable to get the entered values to my apex class pls suggest any one
You must be calling controller method using actionFunction or CommandButton. Try adding rerender attribute in it. Withour rerender, value on the pages don't get bind with the controller.
Please let me know if it helps.
Thanks,
Rashi