Hello, I think this's easy. I want on a form that if a field is changed appears a confirmation message to do it or not. Now I've the following (it's incomplete).
IF xRec.Description<>'' THEN
BEGIN
IF CONFIRM(text0012,TRUE) THEN
........
IF CONFIRM(text0012,FALSE) THEN
............
END;
text0012 var = Are you sure you want to change this field?
How I can do that?.
Thanks in advance.
0
Comments
Is it to avoid that the user changes some info by accident?
In this case you can better put the form to non editable, and use a shortcut to make it editable.
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
Thanks in advance.
The code: Of course it is best to use a constant instead of writing the text directly into the CONFIRM like I did.
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
Description - OnValidate()
..
..
**edit Kriki is more complex & covers all the bases too!**
you could add ERROR("Press ESC to exit the field"); so the user is clear on their options
http://www.BiloBeauty.com
http://www.autismspeaks.org
a/ we give a bad solution, but one that the poster wants to hear and is happy with; or
b/ we give the proper solution, knowing that the poster wont like it and will be disappointed with it.
Is the proposed solution really the best solution?
Our old solution was create a an Add/Change tab at the end of all the tabs. there we put the fields that might require changing from time to time. Then locking down all the other tabs so no overtyping would cause havoc. PLus it's not the default tab anyway, you would have to make an effort to go to that tab and actually make changes by accident.
But with this type of solution "that they want" you'll have to put it on alot of fields & why stop there with item what about customer's, vendor's, etc.
http://www.BiloBeauty.com
http://www.autismspeaks.org
In order to do that we need to evaluate things like:
1. frequency of change
2. no. of fields affected
3. no. of users & their skillset/knowledge/training
4. resources involved/required
...
I have implemented 2 extreme cases which is not "recommended" & both my clients were happy because:
1. They reduce the no. of mouse clicks
2. It becomes intuitive
...
ERP Consultant (not just Navision) & Navision challenger
Thanks everybody for help.