Set parameter in table

Roelof
Member Posts: 377
I am trying to transfer a variable as a parameter to a table that is used in a sub page. Here is the scenario:
- Created 2 actions to turn on/off a software switch as a boolean on the Sales Order (header action)
- These 2 actions (on/off) are calling a function on the Sales Order sub-page, which is setting the same boolean switch through a function on the Sales Line table. This Sales Line table entity suppose to be same entity as on the SubPage (no other SalesLine table entity used).
- This switch boolean is used in "sales Line".field_X. to skip some field validation logic.
- However,when I run the Sales Order page and update field X on the sub page, the debugger is showing that the switch is never been set.
Any idea what is wrong?
- Created 2 actions to turn on/off a software switch as a boolean on the Sales Order (header action)
- These 2 actions (on/off) are calling a function on the Sales Order sub-page, which is setting the same boolean switch through a function on the Sales Line table. This Sales Line table entity suppose to be same entity as on the SubPage (no other SalesLine table entity used).
- This switch boolean is used in "sales Line".field_X. to skip some field validation logic.
- However,when I run the Sales Order page and update field X on the sub page, the debugger is showing that the switch is never been set.
Any idea what is wrong?
Roelof de Jonghttp://www.wye.com
0
Comments
-
-
Hi Roelof
It's been some while since I tried to control some aspect using a global variable in the Rec variable of a page. I gave up after it looked like the value of my variable came and went away apparently randomly, as if the page used a couple of Rec variables, switching them at any time. I don't remember, what it was exactly, I wanted to achieve, and what version of NAV was involved, not even if it was indeed pages, or still forms, but it was impressive enough to never try this again.
Unless someone has mastered this successfully, and tells you how, I suggest you try a different approach, such as a variable on the subpage itself.0 -
Thanks for the reply. Yeah I came across a wall it looks like it. I was able to fix the issue by using a record field and use that as a soft-switch. But it's kinda odd that it doesn't work the way I had in mind.Roelof de Jonghttp://www.wye.com0
-
Hi, since you don't know what you want to control and if you are using BC14 in CSIDE or in AL with extensions.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