sjpiola
10th January 2003, 18:22
Hi,

How can I specify an option in a field using stpapi ? I need specify the option CTRL + P in the field form.

My problem is the session tdsls4102s000 ( Maintain order Sales). By pressing CTRL + P in the field tdsls041.pric the price is update. I would like to do this by using stpapi.

Any suggestion ?

Thanks.

lbencic
10th January 2003, 19:12
Unless someone else knows how, I believe that is what Baan calls in the AFS Manual 'Hidden Functionality', field level zooming or options are not accessable through api commands (yet!).

Usually, you need to write some work around to do what you need. In this case, to update the price on an existing record as the <ctrl>(<shft>)<p> would using an api, you may want to play with first just gathering the correct price from Simulate Calculation of Prices and Discount session (tdsls0510m000, 'price' field), then using that to perform a normal update of the price field for the line.

Paul P
13th February 2003, 10:54
Dear sjpiola,

You might want to run debug on the session to find out which section/function is executed when you press that key combination. Then run stpapi.form.command() or something similar on your Baan version for that function

Rgds,
Paul