Dear All,
Is there a variable / function to detect this?
Cause I want to block the NEW button when user select update/edit existing record.
Thanks.
Dear All,
Is there a variable / function to detect this?
Cause I want to block the NEW button when user select update/edit existing record.
Thanks.
Re: How to find out the form is in ‘Inclusion’ or ‘Edit’ Mode?
You may have to go digging around the generated code to find out how they decide. It may be something as simple as checking for visible buttons on the toolbar. They may also have variables for this but I have not checked.
I myself do not like how SC decides how/when a form goes into add/edit mode so I create an edit form (edit/delete buttons only) and get it like I want. I then copy this form to a ‘view’ and ‘add’ form and change the toolbar accordingly. I find that this gives me more control over my app and I am not stuck trying to guess the logic. It is a bit more work if you have to make changes, but that is why I get my edit form completed and tested first before I make copies. You will also have to update any code/events related to insert/update.
Regards,
Scott.
Re: How to find out the form is in ‘Inclusion’ or ‘Edit’ Mode?
Hi Scott,
Great…! Can we get any sample work for our refernce…?
Thanks in advance
Dhana
Re: How to find out the form is in ‘Inclusion’ or ‘Edit’ Mode?
Give me a bit to get caught up, I just got back from vacation. It is pretty straight forward.
Regards,
Scott.
Re: How to find out the form is in ‘Inclusion’ or ‘Edit’ Mode?
Welcome back ScottMartin - we miss you on this forum
looking foward of more of your explainations
Best Regards
Reginald Bailly