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

sending ids to controller and saving..?
<apex:commandlink action="{!removeline}" onclick="if(confirm('Are you sure?')) " reRender="thePB" target="_top" > <img src="{!$Resource.Red_Cross}" alt="Remove" title="Remove" /> <apex:param name="deleteid" value="{!op.Id}" assignTo="{!deleteid}"/> </apex:commandlink >
I have cross image in front of every record.on click of that i am sending id to the controller.but the problem is when i click on cross 2 records and then click on delete button only 1 record is deleted.Can anyone suggest me how to save ids(more than 1 record) in controller and delete records on delete click.I am learning salesforce
Try putting the records into an array. Than you could use <apex:repeat> to go through the iterator calling the action for each individually
http://www.salesforce.com/us/developer/docs/pages/Content/pages_compref_repeat.htm