Sage MAS 90 and 200 Sage MAS 500 blogs Product Feedback Support Training
Reply
Contributor
kmandevi
Posts: 11
Registered: 12-07-2011
0

Creating New Item Code Through a Dialog Box

Hello all.

 

I have the script below.  It creates a new item through a button in a dialog box in Item Maintenance.  If I run the script without invoking the "BT_OK" button (This button closes the dialog box) then I can see the part that I just created after manually clicking the OK button.  If I include the invoke button line the new part number is not displayed after the script completes.  I would like to diplay the new item code after closing the dialog box window all within the script.

retVal = oScript.InvokeButton("BT_OK")
newRow = oBusObj.SetKey("A123456-1")
retVal = oBusObj.SetValue("PRODUCTLINE$","RM")

 

Any Ideas to fix this?  I am going to try a Program link that will pull up the "Item Maintenance" task, but I currently do not know how to set the default value to load.