Does anyone know how to launch the Sales Order UI after importing a sales order with VI?

SUGGESTED

We use VI quite extensively and it works great. We use it to import many of our orders. After the VI jobs run, we open the sales order entry screen and enter the sales order number to do final editing and to print/email.

Does anyone know how to add a command to launch the Sales Order UI after the job has imported? Also, could the command take a parameter and actually open the imported order?

I tried a couple of iterations, like "..\SO\SO_SalesOrder_ui.pvc" after completion, but it just crashes.

Thanks everyone!!!

  • 0

    I can't think of any way that VI would be able to handle something like this. 

    I have done something similar with AP Invoices and Journal Entries using Business Object Interface.  You can launch a screen programatically and even open a specific record.  The only problem I had dealt with batches.  I was never able to find a way to open a record that had batching enabled.  For BOI, you will need programming experience.  I use C# .NET, but you can use pretty much any language you want if you know how.  It is built for vbs and vb.net, though.

  • 0 in reply to willHyland
    SUGGESTED

    With VI I would suggest writing a regular BOI script and put it in a .BAT file and attached it to the VI job to run on successful completition.

  • 0

    Thanks Will and Big Louie! I have gotten pretty good at VI and I even did the online video course for the BOI. It was years ago and I cannot find where I put the documentation. I'm thinking that a BOI script from a batch file is definitely where the answer lays. On a related note. I created a vbs file that runs a simple message that pops up after the job is finished to notify the user that the all the jobs are complete (4 chained VI jobs). The code "msgbox("Job Completed")" works fine when I call it from perform logic, but If I try to put a title on the window like "msgbox("Job Completed",0,"Order Imports")" it crashes in VI. Any ideas?

  • 0 in reply to BigLouie

    can you provide some sample script to launch a UI, say, "BM_ProductionRegister_ui" or direct me where I might find more information?

  • 0 in reply to mwn7897

    Yea, don't put in a title on the window