Lookup Form ID

Toddy_BoyToddy_Boy Member Posts: 231
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

  • kapamaroukapamarou 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_BoyToddy_Boy Member Posts: 231
    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
  • DenSterDenSter Member Posts: 8,304
    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.
  • krikikriki Member, Moderator Posts: 9,110
    [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_BoyToddy_Boy Member Posts: 231
    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
  • DenSterDenSter Member Posts: 8,304
Sign In or Register to comment.