RoleCenter - Why is this silent Error displayed???

MrNoName
Member Posts: 3
Hello everybody,
I'm new in this forum, but I will try to explain my problem as detailed as I can.
I designed an Order Type Selection for my Purchase Order, Sales Order and so on.
When I want to open my Purchase Order List (Step 1)
An Order Type Selection Window opens and you can select what Filter you want to set
for the ListWhen the user doesn't click OK and closes the Window on another way the following Line
is Executed :
When I perform step 1, it works perfectly
, but when I perform Step 2(Click on "New Sales Order") and Close the OrderType Selection Window Without clicking on
OK an Error appears:
I really don't understand why, because the same Line is Executed as in Step 1(Error('');), but this time the Error is displayed.
Does anybody has an idea why this is happening? :shock:
I'm new in this forum, but I will try to explain my problem as detailed as I can.
I designed an Order Type Selection for my Purchase Order, Sales Order and so on.
When I want to open my Purchase Order List (Step 1)
An Order Type Selection Window opens and you can select what Filter you want to set
for the ListWhen the user doesn't click OK and closes the Window on another way the following Line
is Executed :
ERROR('');A silent Error, so nothing should happen.
When I perform step 1, it works perfectly

OK an Error appears:
I really don't understand why, because the same Line is Executed as in Step 1(Error('');), but this time the Error is displayed.
Does anybody has an idea why this is happening? :shock:
0
Comments
-
I also encountered this behaviour. The ERROR('') does only work on certain triggers in the Windows Client. In OnOpenPage, for example, the error you posted is shown, in the push event of a button everything is fine. So I guess it depends on the user action that starts the code.
I'm not aware of a simple workaround. I restructured my code to save the state in a variable in the page and read it out after the page is closed.0 -
Ok thank you, I solved the problem the same way0
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