Return ID

-matrix--matrix- Member Posts: 103
Hi Everybody,

Is there any function in NAV that return The ID of the current Object?

Thanks

Comments

  • mohana_cse06mohana_cse06 Member Posts: 5,504
    I think NO
    we have TABLENAME fro table name, with this you can filter in Object table and get the ID.

    IF you want the ID of Field then you can use FIELDNO
  • MBergerMBerger Member Posts: 413
    Table : No, at least no direct number, try mohana's suggestion
    Form : CurrForm.ObjectID
    report : CurrReport.ObjectID
    Dataport : No
    XMLPort : No
    Codeunit : No
  • krikikriki Member, Moderator Posts: 9,110
    What I do: in each object where I need this, I create a function
    FUNCTION CurrentObjectID (): integer
    EXIT(CODEUNIT::"My Codeunit");
    or
    EXIT(TABLE:"My Table");
    or
    ...
    Regards,Alain Krikilion
    No PM,please use the forum. || May the <SOLVED>-attribute be in your title!


Sign In or Register to comment.