You need to sign in to do that
Don't have an account?

Hi ,code is working fine , but need a functionality how to work
1)Onclick on the Edit all the rows are getting changed to input, jst need to change the row to Editmode on particular selected row any solution please let me know thanks ...
Controller:
//please help to solve this issue..
Note: on Edition Only particular row should have to Edit..
Thanks
Deepika subramanyam
<apex:page controller="testingclass"> <apex:form > <table style="width:100%"> <tr> <th>name</th> <th>Edit</th> <th>Delete</th> </tr> <apex:variable var="cnt" value="{!0}" /> <apex:repeat var="a" value="{!lsttestingval}"> <tr> <td> <apex:outputPanel rendered="{!anyBooleanValue}" >{!a}</apex:outputPanel> <apex:outputPanel rendered="{!!anyBooleanValue}" ><apex:inputText /></apex:outputPanel> </td> <td><apex:commandbutton action="{!Edit}" value="Edit" /></td> <td><apex:commandbutton action="{!delet}" value="Delete" /></td> </tr> <apex:variable var="cnt" value="{!cnt+1}"/> </apex:repeat> </table> </apex:form> </apex:page>
Controller:
public class testingclass { public string xmlstring{get;set;} public string testingval{get;set;} public List<string> lsttestingval{get;set;} public boolean indexSel{get;set;} public boolean anyBooleanValue{get;set;} public testingclass(){ anyBooleanValue =true; lsttestingval = new list<string>(); lsttestingval.add('Red'); lsttestingval.add('Blue'); lsttestingval.add('Yellow'); } public void edit(){ anyBooleanValue =False; } public void delet(){ system.debug(lsttestingval.size()); } }
//please help to solve this issue..
Note: on Edition Only particular row should have to Edit..
Thanks
Deepika subramanyam
I guess this is a duplicate of Hi.. folks , got stucked in a small functionality of sample development (https://developer.salesforce.com/forums/ForumsMain?id=9062I000000Xs2yQAC)