How to search for a global function

mfgibongmfgibong Member Posts: 9
edited 2004-08-18 in Navision Attain
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]
flor

Comments

  • kinekine Member Posts: 12,562
    Small hint 8)

    SetupNewGLAcc is same as rec.SetupNewGLAcc in this case...

    Need more hints?
    :wink:
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • mfgibongmfgibong Member Posts: 9
    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!
    flor
  • kinekine Member Posts: 12,562
    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).
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • mfgibongmfgibong Member Posts: 9
    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!
    flor
  • kinekine Member Posts: 12,562
    All in Navision is something as "objects" (it is not full object oriented language). Tables, reports, forms, codeunits, all have properties, functions, data etc...
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
Sign In or Register to comment.