How to search for a global function

mfgibong
Member Posts: 9
hi! i am new to navision attain and am doing my own study. i have a basic question which i can't seem to find the answer. i hope someone can help me.
i am looking into the C/AL code of the form Chart of Accounts of Cronus Int'l (Navision's sample application), trying to understand how the form processes data. within that code, a procedure (or function) named SetupNewGLAcc is being called. the problem is i don't know the location of SetupNewGLAcc's full implementation code. can someone help me on this please? i assume that SetupNewGLAcc is a global procedure. am i right? but where can i find that procedure?
thanks![/b]
i am looking into the C/AL code of the form Chart of Accounts of Cronus Int'l (Navision's sample application), trying to understand how the form processes data. within that code, a procedure (or function) named SetupNewGLAcc is being called. the problem is i don't know the location of SetupNewGLAcc's full implementation code. can someone help me on this please? i assume that SetupNewGLAcc is a global procedure. am i right? but where can i find that procedure?
thanks![/b]
flor
0
Comments
-
Small hint 8)
SetupNewGLAcc is same as rec.SetupNewGLAcc in this case...
Need more hints?0 -
so, how can i locate the full implementation code of SetupNewGLAcc? is there an element in a form that indicates where the procedures or functions it uses are located? i checked the properties of the Chart of Accounts form but it doesn't say anything about any included codeunits. the application on the other hand has a lot of codeunits and it'll be hard to open each of them just to find a procedure's implementation code. hope you can help.
thanks!flor0 -
the rec. prefix lead to source, where this function is defined. Rec is table (record) for which is this form created. In this case is rec defined as record 15 which means that it is table "G/L Account". Look there... 8)
Because Navision must know, where look for this function, you know where look too... :-) All is deterministic... only you must know that if no prefix is entered it means "search in this objects or add prefix Rec." (if you are not using some "with" command before).0 -
ok! thanks kine! the code is in the table! thanks for the info! this is the first time that i encountered a solution package having embedded codes in a table. from my programming experiences, when in a design mode, tables usually contain only the properties of its fields.
thanks kine!flor0 -
All in Navision is something as "objects" (it is not full object oriented language). Tables, reports, forms, codeunits, all have properties, functions, data etc...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