Field Menu on a trigger
flint
Member Posts: 44
Hi,
I add a function in a codeunit based on a table(TableNo setted).
No i want to get the fields of this table on my new procedure.
how can i get the fields in the field menu dialogue ?
Thanks
I add a function in a codeunit based on a table(TableNo setted).
No i want to get the fields of this table on my new procedure.
how can i get the fields in the field menu dialogue ?
Thanks
0
Comments
-
Check the virtual table "Field" for the fields in a table.Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 -
When i'm on the trigger "OnRun" all fields appears (by clicking on hte FIELD MENU button).
But when on my new triggers nothing appears.
that's sound strange.
Thanks0 -
The parameter is passed as local variable (OnRun parameter with name Rec ;-)). If you need the values in other functions, you need to pass it to them or save it into global variable.0
-
This thing drive me crazy !!
i created a trigger :
myOnRun(Var Rec : "Table_XXX")
copy/past all codes from the OnRun triggers.made some change.
But when i tried to compile the codeunit an error occurs : it does not recognize the fields of my table.
i noticed that this field are available on the OnRun trigger but not on myOnRun triggers ?
is there somthing that i'm missing here ??
thanks for your help0 -
DO not use the Rec name in your procedure or add WITH Rec do begin... in start of your procedure. The Rec in OnRun is handled in this way but implicitly, in custom procedure it is not working in this way...0
-
Thinks.
it's the only way to do it.0
Categories
- All Categories
- 75 General
- 75 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K 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
- 610 NAV Courses, Exams & Certification
- 1.9K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 250 Dynamics CRM
- 102 Dynamics GP
- 6 Dynamics SL
- 1.5K Other
- 991 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 28 Design Patterns (General & Best Practices)
- Architectural Patterns
- 9 Design Patterns
- 4 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1K General Chat
- 1.6K Website
- 77 Testing
- 1.2K Download section
- 23 How Tos section
- 249 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions
