I want to check some condition on edit button click of a record if condition meet then only allow user to edit that record otherwise raise an exception.
For achieve this where should i write my code so it will check that condition before Edit that record.
For the moment you can put all your checks in the 'write' method, get the record id and get the original record from the database by the record id and do your checks on the original record. You can then allow save process or trigger a warning message and raise an error. This gives you the same final result.
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
About This Community
|Asked: 9/26/15, 2:31 PM|
|Seen: 570 times|
|Last updated: 9/28/15, 1:48 AM|