Quantcast
Channel: Microsoft Dynamics AX Forum - Recent Threads
Viewing all articles
Browse latest Browse all 72043

Changecompany switch back to current company in the loop

$
0
0

Hi,

In AX2012, when I process the following code I found out the company switch back to the current company in the middle if during the process I click the cursor on AX interface. 

For example, the job is called inside company US,  while working on company UK, I click anywhere on AX interface, the company switch back to US.

Is this a limitation of changecompany function? How can I get this resolved?

 

Thanks.

===my code===

 while select DataArea where !DataArea.isVirtual            

{

                changecompany (DataArea.Id)                

{                 

//actual code..                

}

}


Viewing all articles
Browse latest Browse all 72043

Trending Articles