Switching between several companies in a Database

bbalajibbalaji Member Posts: 10
edited 2006-01-27 in Navision Financials
I have several companies in a database, how do i switch between them programmatically

Comments

  • Marije_BrummelMarije_Brummel Member, Moderators Design Patterns Posts: 4,262
    You can change in code via CHANGECOMPANY. Look in the online help for this.


    It does not change the complete company but allows you to read and write data in an other company.

    You can use the Windows Scripting thingy (CTRL+0) to change the company complete.

    Search the forum for infos about this...
  • krikikriki Member, Moderator Posts: 9,112
    You can change in code via CHANGECOMPANY. Look in the online help for this.


    It does not change the complete company but allows you to read and write data in an other company.
    VERY IMPORTANT:Don't use the triggers (VALIDATE,INSERT,MODIFY,DELETE) because if they look into other tables, it are the tables in the current company, and NOT the company in CHANGECOMPANY!
    Regards,Alain Krikilion
    No PM,please use the forum. || May the <SOLVED>-attribute be in your title!


Sign In or Register to comment.