function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
PatcsPatcs 

Editing VF Table Only once using Apex class.

Hi


In my visualforce page I have 3 tables, in that 3 tables if status = "complete" then two tables should be read only and one table should be editable only once i.e if user is edited that table once after saving, if he tried to edit that table again, he should not able to edit it. I have made the 2 tables as only when the status = complete, but i don't know how to write a logic for editing the table only once when the status="complete"


 can any body please help me on this.

 

Thanks in Advance!!!

bob_buzzardbob_buzzard

Its a little tricky without seeing the code, but it sounds like you want to rerender the table once the user has carried out the single edit, and have the read only/read write aspects of it controlled by the status=="complete" condition.