Thursday, 18 June 2015

Open a web url through x++ code/job in Microsoft Dynamics AX 2012

Now you can open a website/web url through x++ code/job: here it is folks >>>

    static void OpenWebUrl(Args _args)
    {
   
        Dialog      dialog;
        DialogField field;
   
        dialog = new Dialog("My Dialog");
        dialog.addText("Enter the web url you want to connect:");
        field = dialog.addField(extendedTypeStr(Name));
   
        if (dialog.run())
        {
            infolog.urlLookup(strFmt("http://%1",field.value()));
        }
    }

Example: you can enter: rgjdynamics.blogspot.com
    

No comments:

Post a Comment