- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
BOI CREATE NEW INVENTORY ITEM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
03-08-2011 07:27 AM
Has anyone written a Boi Routine for creating new inventory items mas 4.4. Can you help us get started?
Re: BOI CREATE NEW INVENTORY ITEM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
03-09-2011 08:43 AM
I bet Dawn has. She has used VB Scripting and BOI to do everything from slow global warming to halt the destruction of the Great Barrier Reef.
--------------------------------------------------------------------------
You have enemies? Good. That means you've stood up for something in your life.
Re: BOI CREATE NEW INVENTORY ITEM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
03-09-2011 09:55 AM
Oh, BigLouie, you exaggerate. However I have been working on using Visual Integrator to import more hours into the day so perhaps I can accomplish those things after all. ![]()
Dawn
Re: BOI CREATE NEW INVENTORY ITEM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
03-09-2011 01:17 PM
Actually I called her company trying to get a hold of her. She has helped me out before on the forums.I am still waiting feed back. We have got to the point where we can write the item code and the product line but it will not let us set the value for the item description or the primary vendor. Please help!
Dim strItemCode As String = "TES-1234597"
retVal = soORDER.nSetKey(strItemCode)
Dim strLastError As String = ""
strLastError = soORDER.sLastErrorMsg
rtn = soORDER.nSetValue("ProductLine$", "0002")
strLastError = soORDER.sLastErrorMsg
rtn = soORDER.nwrite()
strLastError = soORDER.sLastErrorMsg
rtn = soORDER.nSetValue("ItemCodeDesc$", strDesc) <---throws error The record is not in an editable state.
Re: BOI CREATE NEW INVENTORY ITEM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
03-09-2011 01:22 PM
Put the ItemCodeDesc SetValue before the Write line.
In order to assign the primary vendor you first have to save the item, then add a record to the ItemVendor table, then come back to the item and assign the primary vendor (or else the validation will fail).
Re: BOI CREATE NEW INVENTORY ITEM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
03-09-2011 02:04 PM
Thanks for the heads up. We did get the item code description to fill in by moving it up in the script prior to the produc t line. I will post our results
Re: BOI CREATE NEW INVENTORY ITEM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
03-09-2011 02:41 PM
Dim rtnIV As Object
rtnIV = oSS.nsetdate("I/M", strDate)
oSS.nSetModule("I/M")
oSS.nSetProgram(oSS.nLookupTask("IM_ItemVendor_ui"
Dim objIV As Object
objIV = oPVX.NewObject("IM_ItemVendor_bus", oSS)
Errors at the last line.
Re: BOI CREATE NEW INVENTORY ITEM
[ Edited ]- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
03-10-2011 10:22 AM - last edited on 03-10-2011 10:23 AM
I believe "Set " is missing from your last line.
Set objIV = oPVX.NewObject("IM_ItemVendor_bus", oSS)


