How to pass value from one page to another.

mysamza
Member Posts: 66
So on a sales order subform, if a user types unit price, my written onaftervalidate trigger runs and if the condition is met a PageType = NavigatePage;
opens.
Now on this page, if the person chooses to close this page by pressing X on the right corner which captions to Save & Close then I intend to change the value of unit price back to default and that is the Cost Price.
Here is the Page;
Now the issue is just before the Error I intend to go to the Item table bring the Cost price and set it to the Sales Order Subform to update it so that once the NavigateDialog box closes, user gets to see the Cost Price. Now to find the Item and, of course, I do not have access to Rec.No on this NavigateDialog page so what is the best way to move Rec.No from the Sales Order Subform to my Password Dialog page.
opens.
Now on this page, if the person chooses to close this page by pressing X on the right corner which captions to Save & Close then I intend to change the value of unit price back to default and that is the Cost Price.
Here is the Page;
page 50140 Password { PageType = NavigatePage; ApplicationArea = All; UsageCategory = Administration; layout { area(Content) { field(Password; Password) { ApplicationArea = All; trigger OnValidate() var rec_Set: Record "Sales & Receivables Setup"; begin rec_Set.GET(); IF Password = rec_Set.Password then CurrPage.Close() else begin Error('Password Incorrect'); end; end; } } } var Password: Text[10]; }
Now the issue is just before the Error I intend to go to the Item table bring the Cost price and set it to the Sales Order Subform to update it so that once the NavigateDialog box closes, user gets to see the Cost Price. Now to find the Item and, of course, I do not have access to Rec.No on this NavigateDialog page so what is the best way to move Rec.No from the Sales Order Subform to my Password Dialog page.
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