Request Page Problem.

jhanvincent14
Member Posts: 214
I'm still new in Navision, how can I restrict a variable in request page that if the variable is empty the report will not load. instead it will show a message that the "Vendor No." is required. (see attached photo)
0
Best Answers
-
Please check some standard reports related to start date and end date.
You need to write code in OnPreReport to check whether vendor no. has a value. if not show an error5 -
Or from the RequestPage the OnQueryClosePage(CloseAction : Action None) : Boolean trigger. You could EXIT(FALSE) when the value is empty preventing starting the report at all.5
-
Ok, as Mohana and duikmaster stated already:
OnQueryClosePage(CloseAction : Action None) : Boolean
IF YourVariable = '' THEN
ERROR("someError")
Of course your RequestPage Variable has to be global for this to work.
You can place the same trigger in the Reports OnPreReport for the same effect (is propably better, because nobody likes code in RequestPages)
Austrian NAV/BC Dev5
Answers
-
Please check some standard reports related to start date and end date.
You need to write code in OnPreReport to check whether vendor no. has a value. if not show an error5 -
Or from the RequestPage the OnQueryClosePage(CloseAction : Action None) : Boolean trigger. You could EXIT(FALSE) when the value is empty preventing starting the report at all.5
-
Can I ask question. how can I stop a preloading Report ?0
-
jhanvincent14 wrote: »Can I ask question. how can I stop a preloading Report ?
What exactly do you mean by that ?Austrian NAV/BC Dev0 -
for example. I have this variable that I use for request page. then if the user click the preview button without entering any value in that variable then the system will pop up a message that it needs to have a value then the report will not load it will stay in the request page0
-
jhanvincent14 wrote: »Can I ask question. how can I stop a preloading Report ?
What exactly do you mean by that ?
for example. I have this variable that I use for request page. then if the user click the preview button without entering any value in that variable then the system will pop up a message that it needs to have a value then the report will not load it will stay in the request page0 -
Ok, as Mohana and duikmaster stated already:
OnQueryClosePage(CloseAction : Action None) : Boolean
IF YourVariable = '' THEN
ERROR("someError")
Of course your RequestPage Variable has to be global for this to work.
You can place the same trigger in the Reports OnPreReport for the same effect (is propably better, because nobody likes code in RequestPages)
Austrian NAV/BC Dev5
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