Lookup Form ID

Toddy_Boy
Toddy_Boy Member Posts: 232
Does anyone know how to get the TableRelation property (or any other properties) of a field from a table within Navision using C/SIDE? And then how to get the LookupFormID of a table soit can be run using FORM.RUNMODAL(formno)
:-k
Life is for enjoying ... if you find yourself frowning you're doing something wrong

Comments

  • kapamarou
    kapamarou Member Posts: 1,152
    Toddy Boy wrote:
    how to get the TableRelation property (or any other properties) of a field from a table within Navision using C/SIDE?

    Use virtual table field (2000000041).

    OR

    RELATION (Record)
    Use this function to find out the table relationship of a given field.
  • Toddy_Boy
    Toddy_Boy Member Posts: 232
    Any idea on how I can then progress to inspect the properties of a table and get the LookupFormID?
    Life is for enjoying ... if you find yourself frowning you're doing something wrong
  • DenSter
    DenSter Member Posts: 8,307
    You can use FORM.RUN(0,Rec), and it will use the form that is set as the LookupFormID for the table that 'rec' refers to.
  • kriki
    kriki Member, Moderator Posts: 9,121
    [Topic moved from 'NAV 2009' forum to 'NAV/Navision' forum]
    Regards,Alain Krikilion
    No PM,please use the forum. || May the <SOLVED>-attribute be in your title!


  • Toddy_Boy
    Toddy_Boy Member Posts: 232
    Hi Denster

    Thanks for the tip, however I won't always know what table Rec will be.

    Steve
    Life is for enjoying ... if you find yourself frowning you're doing something wrong
  • DenSter
    DenSter Member Posts: 8,307
    It works for every table.