Is there any way to update Global Variables from subpages ?

daniel_mitrea_1995
Member Posts: 26
Hello
In BC14 is there any way to access and update global variables from subpages ?
I know about UpdatePropagation but I don't think is what I need.
I also read about protected var but this feature it's available for newer versions.
In order to see global variables values on pagepart I have created a global function and called it on openPage CurrPage.BufferList.Page.SetGlobalVars but after making some adjustments, those variables change and I need to send back the changed values in the header.
Is there any way to accomplish this ?
Thank you
In BC14 is there any way to access and update global variables from subpages ?
I know about UpdatePropagation but I don't think is what I need.
I also read about protected var but this feature it's available for newer versions.
In order to see global variables values on pagepart I have created a global function and called it on openPage CurrPage.BufferList.Page.SetGlobalVars but after making some adjustments, those variables change and I need to send back the changed values in the header.
Is there any way to accomplish this ?
Thank you
0
Answers
-
Why do you want to do this, what is the scenario?United Kingdom0
-
there is a customization to a client
there is a sales inventory page
here are several filters you can put, defined as variables on the page
when I make an order from the buffer (buffer list it's a page part), I select the desired quantity for that item, and after clicking ok along with a few other adjustments it should also update global variables from the main page (see attached image)
now I don't know how to update these variables in the subform.
0 -
I solved it using Single Instance Codeunit0
-
@daniel_mitrea_1995 - Single Instance Codeunit will always hold the value until and unless the company the initialized.
Make Sure you are aware of this.Thanks
Blog - rockwithnav.wordpress.com/
Twitter - https://twitter.com/RockwithNav
Facebook - https://facebook.com/rockwithnav/0 -
Yes, I'm aware.. when opening and closing the page, I'm cleaning the values.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