How to start Dynamics Ax Automatically

suyeshsuyesh Member Posts: 12
edited 2007-07-25 in Dynamics AX
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?

Regards,
Suyesh

Comments

  • RyuRyu Member Posts: 26
    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...
  • toeytoey Member Posts: 3
    you can opening AOT forms automatically by setup on Option form

    Go to menu bar: Tools/Options

    Then set Start Menu to "Application Object"
  • suyeshsuyesh Member Posts: 12
    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.........!!!!!


    Thanks,
    Suyesh....
  • toeytoey Member Posts: 3
    hi 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...
  • viswanathviswanath Member Posts: 24
    hai suyesh

    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
  • HarishHarish Member Posts: 172
    Hi Suyesh,

    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,
    Harish Mohanbabu
    Long way to go before I sleep..
  • HarishHarish Member Posts: 172
    My mistake. For displaying PO form on start up, please try to do something like this -

    http://www.mibuso.com/forum/viewtopic.p ... nufunction

    Try to write the above in Application.startupPost()
    Harish Mohanbabu
    Long way to go before I sleep..
  • suyeshsuyesh Member Posts: 12
    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.

    Pls give me any suggestion.

    Thanks
    Suyesh
  • HarishHarish Member Posts: 172
    Hi 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,
    Harish Mohanbabu
    Long way to go before I sleep..
  • suyeshsuyesh Member Posts: 12
    Hi,
    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
  • suyeshsuyesh Member Posts: 12
    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/

    Thanks to all

    Cheers,
    Suyesh Ahke
Sign In or Register to comment.