Hi everyone,
Please give me an idea , how can Dynamics AX be started automatically from another application like SPS(Share point services) and opening AOT forms automatically? My one of the client is requiring this.
Is it possible?
hi,
i'don't how you can open AOT automaticaly ( you just can open project on propertie's user) but to openning Dynamics AX throw sharepoint if your client is on citrix you can use published application...
Hi guys,
My concern is running Ax 4.0 from other application say .Net application.
It should run Ax32.exe file , then open Ax 4.0 , then navigate to AOT form (eg. purchase order form), open that form automatically to view purchase order.
Is there possibility to do above mentioned process????
Please give me any idea or help.........!!!!!
i never tried in these things but i think it is possible with business connector option in ax
further more details go through the sdk that u can see
Microsoft.Dynamics.BusinessConnectorNet Namespace
u can get more information from that
regards
viswanath
Thanks Harish,
I go the some code for running Forms(Say purchTable). The code can be written in startupPost method of application class. Here is a simple code.
FormRun fr = new FormRun(new args(formstr(PurchTable)));
;
fr.init();
fr.run();
fr.detach();
Here my concern is somewhat different.
I am trying to run Axapta form using .Net application (C# coding).
I am able to run ax32.exe from .Net but unable to open PurchTable form (not only this form, other form also) with specified value (say Vend account). I am using a Ax class which takes two parameter - one is Form name(purchTable) and any Value(Say vendaccount).
I am calling this class via .Net. But unable to open the form.
Hi All,
Sorry for late reply.
After all and a lot of R&D I have solved my problem. Now I am able to call any Ax form with specified value from outside application using .NET code(C# or any code).
I have applied a startupcmd feature with XML document approach to open the form automatically. \:D/
Comments
i'don't how you can open AOT automaticaly ( you just can open project on propertie's user) but to openning Dynamics AX throw sharepoint if your client is on citrix you can use published application...
Go to menu bar: Tools/Options
Then set Start Menu to "Application Object"
My concern is running Ax 4.0 from other application say .Net application.
It should run Ax32.exe file , then open Ax 4.0 , then navigate to AOT form (eg. purchase order form), open that form automatically to view purchase order.
Is there possibility to do above mentioned process????
Please give me any idea or help.........!!!!!
Thanks,
Suyesh....
I think if u want to view PO. It's possible to use other .NET application access and view by use .net connector.
toey...
i never tried in these things but i think it is possible with business connector option in ax
further more details go through the sdk that u can see
Microsoft.Dynamics.BusinessConnectorNet Namespace
u can get more information from that
regards
viswanath
A while ago I posted some info on starting Ax from Command prompt using Windows Script Host (WSH). Here is the link -
http://harish-m.livejournal.com/
Please see whether you can get any inspiration from there.
As far as displaying purchase order form, please search this forum with 'startuppost()'.
Hope this helps,
Long way to go before I sleep..
http://www.mibuso.com/forum/viewtopic.p ... nufunction
Try to write the above in Application.startupPost()
Long way to go before I sleep..
I go the some code for running Forms(Say purchTable). The code can be written in startupPost method of application class. Here is a simple code.
FormRun fr = new FormRun(new args(formstr(PurchTable)));
;
fr.init();
fr.run();
fr.detach();
Here my concern is somewhat different.
I am trying to run Axapta form using .Net application (C# coding).
I am able to run ax32.exe from .Net but unable to open PurchTable form (not only this form, other form also) with specified value (say Vend account). I am using a Ax class which takes two parameter - one is Form name(purchTable) and any Value(Say vendaccount).
I am calling this class via .Net. But unable to open the form.
Pls give me any suggestion.
Thanks
Suyesh
I understand that you want to pass parameters from C# to Ax. AFAIK there is no command line parameter in Ax which could be used to pass parameters.
Perhaps you might want to save the parameter in text file or registry from C# and pick it up from Ax.
Hope this helps,
Long way to go before I sleep..
Thanks you got my concern. Any way I am finding the solution for that.
I will get in touch with you after some try and error on this technical concern.
I have some list of error messages to which I am trying to solve.
Here I want to know one thing to go ahead for this venture(calling a form), that
1) Is there any run time command (like -startupcmd=xxx) which will call class with the parameter?
[ For your information I have tried this startupcmd with Autorun code (e.g. "ax32 -startupcmd=Autorun_test.xml") in command line
(run option of start menu in windows. In which test.xml contains code to call a class with parameters.)
which is working absolutely fine. And I dont want to go with this xml file. I directly want to run a class with parameter.]
I am looking for the same which will call class from command line.
(I think this might solve my problem or else I will do find any other solution)....
Just consider my question and pls reply back
Thanks & Regards,
Suyesh
Sorry for late reply.
After all and a lot of R&D I have solved my problem. Now I am able to call any Ax form with specified value from outside application using .NET code(C# or any code).
I have applied a startupcmd feature with XML document approach to open the form automatically. \:D/
Thanks to all
Cheers,
Suyesh Ahke