CHANGECOMPANY - NAV 2009

SYLV1GSYLV1G Member Posts: 93
Hello,

I would like to use the CHANGECOMPANY function in order to update some values during a report process.
If the report stops because of an error for example, does the current company stay the company used for the tables i tried to update before i run the report ?

Thanks in advance for your help

SG

Comments

  • krikikriki Member, Moderator Posts: 9,110
    The CHANGECOMPANY is only valid for that table-variable until that table-variable goes out of scope.
    So when you have an error, the table-variable is out of scope and also the CHANGECOMPANY.

    Important : the changecompany is ONLY for that table and NOT for other tablevariables used in that table. So the triggers (and tablerelations on fields) are still on the original company and not on the CHANGECOMPANY-company.
    Regards,Alain Krikilion
    No PM,please use the forum. || May the <SOLVED>-attribute be in your title!


  • SYLV1GSYLV1G Member Posts: 93
    Thank you for your answer and best regards

    SG
Sign In or Register to comment.