Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
0
Creating New Item Code Through a Dialog Box
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
01-03-2012 12:22 PM
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.


