Validation when user marks a record

Carlos_Pt
Member Posts: 21
Hi all, i am trying to run a validation when the user marks a record. I need to run it only one time, before the record becomes marked.
Example:
-Record Not marked
-User marks the record
bConfim := Confirm(... Do you really want to mark this record?)
IF not bconfirm then
MARK(FALSE);
Any help will be appreciated.
Best Regards
Example:
-Record Not marked
-User marks the record
bConfim := Confirm(... Do you really want to mark this record?)
IF not bconfirm then
MARK(FALSE);
Any help will be appreciated.
Best Regards

0
Comments
-
There isn't a trigger to do this. You could check to see if it is marked after they move off of the field. Or tell them to check their work at the end before running whatever process they are going to run on the marked records.0
-
Or you need to use some boolean field to "check" the record (it could be some variable saved in some temp table just for the form instance). Than you can use the confirm in OnVaidate of this field...0
-
kine wrote:Or you need to use some boolean field to "check" the record (it could be some variable saved in some temp table just for the form instance). Than you can use the confirm in OnVaidate of this field...
That's a great idea.
You could also have a button with an override for the Ctrl + F1 shortcut key (if they use this and do not click Mark from the menu). That could throw a prompt and then mark (or not) the record.
I think both ways have their pros and cons.0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K 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
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions