Options

Start a local application in RTC

andyRandyR Member Posts: 27
edited 2009-06-09 in NAV Three Tier
Hi,

is is possible (how?) to start a local application with an action button in RTC?
I did not find any information about it.

Thanks for help
Andy

Answers

  • Options
    clauslclausl Member Posts: 455
    1. Add Variable:
    Name: wSHShell
    DataType: Automation
    Subtype: 'Windows Script Host Object Model'.WshShell

    2. Add Action
    Caption: Internet Explorer
    Type: Action

    3. Add this code to on OnAction trigger:
    CREATE(wSHShell,FALSE,ISSERVICETIER);
    wSHShell.Run('iexplore.exe');

    CLEAR(wSHShell);

    4. When running the action you will get this message:
    The Server has requested to run Windows Script Host Shell Object on your client.
    • Allow this time, but ask next time
    • Always allow
    • Never allow

    5. If you select either "Allow this time, but ask next time" or "Always allow", Internet Explorer will open.

    Regards,
    Claus
    Claus Lundstrøm | MVP | Senior Product Manager | Continia.com
    I'm blogging here:http://mibuso.com/blogs/clausl and used to blog here: http://blogs.msdn.com/nav
    I'm also offering RDLC Report Training, ping me if you are interested. Thanks to the 700 NAV developers that have now already been at my training. You know you can always call if you have any RDLC report issues :-)
  • Options
    andyRandyR Member Posts: 27
    Thank you very much!
  • Options
    AdministratorAdministrator Member, Moderator, Administrator Posts: 2,497
    Please use the Attribute-field, to mark your posting as solved. Then a green checkmark is visible, next to your topic title. And you can remove the "[SOLVED]"-text in your title.
Sign In or Register to comment.