Discussion:
Initialize object while changing/opening a company
(too old to reply)
AshleshPatel
2010-08-30 07:10:43 UTC
Permalink
Hi,
I wanted to put my global object initialization logic in AX
application. I have my own COM dll and i wanted to initialize it on AX
startup time.

Currently I have put it in Classes->Info->startuppost(). It works
fine.
But my issue is when I am changing company file at this moment Classes-
Info->startuppost() is not called.
I wanted to put my logic into whenever user changes its company file.

Regards,
Ashlesh
Martin Drab
2010-08-30 08:02:04 UTC
Permalink
Hi, take a look at (class) Application.setDefaultCompany().
This method is also called from several automatic processes - you have to
decide if it is what you want. Anyway this is a good place to start...
--
Best regards,
Martin Drab (Czech Blog: http://dax-cz.blogspot.com)
Post by AshleshPatel
Hi,
I wanted to put my global object initialization logic in AX
application. I have my own COM dll and i wanted to initialize it on AX
startup time.
Currently I have put it in Classes->Info->startuppost(). It works
fine.
But my issue is when I am changing company file at this moment Classes-
Info->startuppost() is not called.
I wanted to put my logic into whenever user changes its company file.
Regards,
Ashlesh
.
Loading...