Global Variables in a Page List

sabzam
Member Posts: 1,149
Dear All,
I have got a new list page on top of which I have created three global variable which are to be filled up by the user. This means it looks like an invoice but the header part is made up of global variable whilst the page part of the invoice in reality is the actual page. The issue is that when the user sets the global variable and the pointer is set for the first record in the list there is no issue. But when the user changes the pointer on the list the global variables are set initialised to blank. When returning back the pointer to the first record the values in the global variables surface up again. It seems that the global variable is tied to the record in the list but the setup is definitely not like that. Has anyone got any idea what this may be as I have been looking into it for ages and could not find why this is happening.
Thanks
Steve
I have got a new list page on top of which I have created three global variable which are to be filled up by the user. This means it looks like an invoice but the header part is made up of global variable whilst the page part of the invoice in reality is the actual page. The issue is that when the user sets the global variable and the pointer is set for the first record in the list there is no issue. But when the user changes the pointer on the list the global variables are set initialised to blank. When returning back the pointer to the first record the values in the global variables surface up again. It seems that the global variable is tied to the record in the list but the setup is definitely not like that. Has anyone got any idea what this may be as I have been looking into it for ages and could not find why this is happening.
Thanks
Steve
0
Comments
-
That's why it is a list page
. The global variable is attached to every record, it is the same as if you put it in the repeater area. Change the page type to Card. (I'm not sure right now, but i think ListPlus will work too)
-Mihail- [MCTS]0 -
I see thought so, it's different form the forms where a global variable would not be related to the actual records. By any chance is it possible to set the repeater to read from a global variable rather than from the base table?0
-
The issue can be solved very simple way - just add CurrPage.UPDATE to OnValidate trigger of the controls that contain global variables.1
-
Vyacheslav is correct.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