Hi to all,
I've a native database (Navision 4.00) with 2 company.
Is there a method to read contents of some tables of the other company ?
If so how ?
I know there is a properties of a table (data per company) that if set to no let me share the table, but this is not what I want.
Using code, I'd like to read some records of tables of the other company.
Many tahnks in advance
Fabrizio Fiammenghi
0
Comments
Be carefull NOT to use triggers of the table when putting data in it.
This because if in the triggers another record is read or written, that record will be in CURRENT company!
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
RIS Plus, LLC
MVP - Business Apps
Ofcourse, your next smart answer would be, "Nobody will ask you. So don't worry"
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
Think about it. If you want to have possibility to call C/AL from another company through some recrod, it means, that all actions called from this record must have own context in which they run (context of the second company). But it is not possible, because part of this context is for example singleinstance codeunit initialized when opening company. But because in this situation you have not opened the company, you have not correct context in which the C/AL code for the second company can run. It is not possible to provide correct context for such a code...
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
The big green smiley face at the end of my comment should clue you in that I was joking.
RIS Plus, LLC
MVP - Business Apps
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.