+ Start a Discussion
ran67ran67 

delete the record from the pageblocktable

Hi i want to delete the record from the pageblocktable when the user uncheck the checkbox from that column.itmust delete the specfice record from account object..cn anyone help me

 

 

 

 

 

thanks in advance

 

admintrmpadmintrmp

It would be easier to build a commandLink or commandButton to do this for you but you could use this tag.

http://www.salesforce.com/us/developer/docs/pages/Content/pages_compref_actionFunction.htm?SearchType=Stem&Highlight=actionFunction

 

When using Javascript, just call the function and rerender the page when the checkbox has been checked.

craigmhcraigmh

You can also use an actionFunction control to delete the record from the DB as well as the collection that the pageBlockTable is bound to. If using AJAX, it will look very smooth.

 

http://www.salesforce.com/us/developer/docs/pages/Content/pages_compref_actionFunction.htm