Error message unable to display in Link FactBox
llfoon
Member Posts: 2
Hi, I am newbie developer in NAV 2013 R2.
I was trying to make link factbox to prompt error message during modification, so i add in the condition in the table 2000000068 (Record Link) OnModify trigger.

But during testing in RTC, when I try to save the modified data in the factbox, it just show a red cross above the box, no message display.

anything i done wrongly? Please advise.
Thanks in advance.
Lily
I was trying to make link factbox to prompt error message during modification, so i add in the condition in the table 2000000068 (Record Link) OnModify trigger.

But during testing in RTC, when I try to save the modified data in the factbox, it just show a red cross above the box, no message display.

anything i done wrongly? Please advise.
Thanks in advance.
Lily
0
Best Answer
-
hover over the red cross. the error message should be shown in a label.
to get a message, try following instead of error message.
message('not allowed');
error(''); // to stop the processbest regards
Franz Kalchmair, MVP
Alias: Jonathan Archer
please like / agree / verify my answer, if it was helpful for you. thx.
Blog: http://moxie4nav.wordpress.com/5
Answers
-
hover over the red cross. the error message should be shown in a label.
to get a message, try following instead of error message.
message('not allowed');
error(''); // to stop the processbest regards
Franz Kalchmair, MVP
Alias: Jonathan Archer
please like / agree / verify my answer, if it was helpful for you. thx.
Blog: http://moxie4nav.wordpress.com/5 -
hover over the red cross, it show nothing.
i tried your solution, and it worked as i wanted. thanks archer89.
now, i can control the action modify/delete/insert, but not the open. any idea to control open?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
- 610 NAV Courses, Exams & Certification
- 1.9K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 251 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
