Ask for options before open a page

Tomas_Crespo
Member Posts: 6
Hi!
I have a page that makes a lot of calculations, so I would like to ask the user for the start and end date before open the page.
Something similar to the Request Page of the reports, but to run a page, not a report.
Some idea? Some similar behaviour in standar NAV?
I'm using NAV 2013
Lot of thanks
I have a page that makes a lot of calculations, so I would like to ask the user for the start and end date before open the page.
Something similar to the Request Page of the reports, but to run a page, not a report.
Some idea? Some similar behaviour in standar NAV?
I'm using NAV 2013
Lot of thanks
0
Answers
-
First put your calculations in a function called ComplexCalculation. Next declare 2 variables StartDate type Date and EndDate type Date. Add these 2 variable fields to the page and also add a menu Item called Calculate. When you run your page you will have
Calculate(Ribbon)
Start Date XX/XX/XXXX
End Date XX/XX/XXXX
Pass your start date and End date to your ComplexCalculation function and your code will come into play.
Thanks
RJ.1 -
Hi @rnjbng, thanks for the solution. I probably use that method, with perhaps auto excute calculation when date field lost focus
Is have to be two date fields (start and end)? or could it be only one field like filters in request pages? i.e.: 010218..010618
Is there some similar behaviour in some page in NAV?
Thanks0 -
I would do it this way.
Add global function to page with calculations that set the global variables (StartDate,EndDate)SetDateFilter(sDate,eDate) StartDate := sDate; EndDate := eDate;
From Request Page.... use this function on... CloseRequestPage or somewhere....MyCalculationForm.SetDateFilter(FromDate,ToDate); MyCalculationForm.RUN;
so When I Open myCalculationsPage (OnOpenPage) I have a values that are set using this function for global variables StartDate and EndDate0 -
Thanks @muca but my problem is don´t know how to create the request page. As far as I know it only can be created for reports, not for pages0
-
You can use report request form...
But I think there better can be page where PageType= ConfirmationDialog or StandardDialog ;o)0 -
You can go ahead with the Request Page, Can check Confirmation Dialogue OR Standard Dialogue NAV Pages OR even try Radio Buttons.Thanks
Blog - rockwithnav.wordpress.com/
Twitter - https://twitter.com/RockwithNav
Facebook - https://facebook.com/rockwithnav/0 -
[Topic moved from 'NAV/Navision Classic Client' forum to 'NAV Three Tier' forum]
Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!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