Skip to Content
0
Former Member
Jul 07, 2005 at 12:03 PM

UI: Opening Sales Order screen and loading with data

95 Views

Hi,

I'm currently using the SDK to develop a new screenin SBO. From my new screen I need to display the sales order screen with an order loaded into it.

I currently open the screen using the ActivateMenuItem methid, then use the sendKeys method to try and change to find mode, pass in the sales order number and press enter to start the search.

The code is this:

moSBOApp.ActivateMenuItem("2050");
moSBOApp.SendKeys("(^f)");
moSBOApp.SendKeys("123");
moSBOApp.SendKeys("{ENTER}");

But the form doesn't seem to change modes, it just stays in "Add" mode. Is there a better way of doing it?

I've also tried putting code in the FORM_LOAD event for the sales order screen and try and change mode then, but I just get an "Invalid Form Mode" error

Help!