Confirming field change on a form
shogan@mila.ie
Member Posts: 113
Hi all...
How could you ask the user to confirm a field change on a form?
E.g.
In the Item card, how could you confirm a change {Yes/No} in the Vendor Product No. or Shelf/Bin No. fields?
I am thinking this would need to be done by a trigger? Is this easy to do?
Thanks a million :shock:
Stephen H.
How could you ask the user to confirm a field change on a form?
E.g.
In the Item card, how could you confirm a change {Yes/No} in the Vendor Product No. or Shelf/Bin No. fields?
I am thinking this would need to be done by a trigger? Is this easy to do?
Thanks a million :shock:
Stephen H.
0
Comments
-
Hi Stephen,
I would have given you more specfic answer if your question was clear. From what i understand you could use the following statement on the OnValidate trigger of the Shelf Bin No.
If "Shelf Bin No." <> xrec."Shelf bin no." then
if not confirm('Do you want to change the value',false) then
exit;
This should work else On OnModify trigger check for the "shelf bin no." and the other field.
Thanks
Best regards
Suresh.
NJ.0 -
I would like to add that the statement Sbhat posted should be at the beginning of the Validation trigger. This because he is using and EXIT to "break" the routine if you confirm the question with "not yes".
(And use text constants instead of typing the message in the confirm)"Real programmers don't comment their code.
If it was hard to write, it should be hard to understand."0
Categories
- All Categories
- 75 General
- 75 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 611 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 253 Dynamics CRM
- 103 Dynamics GP
- 6 Dynamics SL
- 1.5K Other
- 991 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 28 Design Patterns (General & Best Practices)
- Architectural Patterns
- 9 Design Patterns
- 4 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1K General Chat
- 1.6K Website
- 77 Testing
- 1.2K Download section
- 23 How Tos section
- 249 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions