- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
- « Previous
- Next »
Re: In PO entry need to verify that Vendor is the Primary vendor in Inventory Master
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
02-08-2012 07:54 PM
Hi Manuel, I've posted the example here:
Good luck!
Re: In PO entry need to verify that Vendor is the Primary vendor in Inventory Master
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
02-09-2012 07:12 AM
Roland, the big difference is that all SetWarning() does is set a warning flag for our objects and then in our code we issue the MessageBox(). The problem as you noted and is noted in the Scripting.doc that if we override the error message or return value you won't get this message. We probably override this more often than not.
Elliott
Re: In PO entry need to verify that Vendor is the Primary vendor in Inventory Master
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
02-09-2012 08:44 AM
Thanks Elliott!
Re: In PO entry need to verify that Vendor is the Primary vendor in Inventory Master
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
03-15-2012 08:49 AM
Hi guys,
seems like the message works fine... it doesn't freeze up anymore....
my problem now is that i am not getting the VendorNo$ from the P/O Header. I am getting a blank field.
The follwoing i the code that i am using...
ItemCode = ""
itemtype = ""
LineKey=""
oCIItem = 0
CIVendorNo = ""
POVendorNo = ""
retVal = 0
if oBusObj.EditState=2 then
oItemSvc = oBusObj.GetChildHandle("ItemCode")
if oItemSvc <> 0 then
Set oItemSvc = oBusObj.AsObject(oItemSvc)
end If
retVal = oBusObj.GetValue("ItemType$", itemtype)
retVal = oBusObj.GetValue("ItemCode$", ItemCode)
rVal=0
rVal = oScript.DebugPrint("i am in")
oCIItem = oSession.GetObject("CI_ItemCode_svc")
if oCIItem then
Set oCIItem = oScript.AsObject(oCIItem)
retVal = oBusObj.GetValue("VendorNo$", POVendorNo)
retVal = oCIItem.SetKeyValue("ItemCode$", ItemCode)
retVal = oCIItem.Find()
if retVal then
retVal = oCIItem.GetValue("PrimaryVendorNo$", CIVendorNo)
retval = oCIItem.GetValue("ItemType$",itemtype)
if itemtype = "1" then
rVal=0
rVal = oScript.DebugPrint(CIVendorNo)
rVal = oScript.DebugPrint(POVendorNo)
if CIVendorNo<>POVendorNo then
strMsg = "P/O Vendor is not the Primary Vendor"
retVal = oSession.AsObject(oSession.UI).MessageBox("",strMs
end if
end if
end if
end if
end if
I am using Column Pre-validate on Item Code
Do i need to do something else to get the VendorNo$ from the P/O Header?
Regards,
Manuel
Re: In PO entry need to verify that Vendor is the Primary vendor in Inventory Master
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
03-15-2012 09:39 AM
Manuel,
You are using the incorrect object handle, since the VendorNo$ is in the header object and not in the line detail, you should use the oHeaderObj handle.
retVal = oHeaderObj.GetValue("VendorNo$", POVendorNo)
HTH
Elliott
Re: In PO entry need to verify that Vendor is the Primary vendor in Inventory Master
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
03-15-2012 09:45 AM
Thanks Elliott,
Totally missed that !!!!!
Regards,
Manuel
Re: In PO entry need to verify that Vendor is the Primary vendor in Inventory Master
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
03-17-2012 03:49 AM
Thanks, that worked !!!
Regards,
Manuel
- « Previous
- Next »


