Bill of Materials InvokeProgram Script

SOLVED

I am trying to launch either BOM Inquiry or Maintenance using an InvokeProgram or Process User Defined Script, but any time I add the Bill I get the error "You do not have security rights to create the record" but I am not trying to create a record. Any ideas? I have tried every combination of BillNo and Revision I could think of.

retVal = oSession.InvokeProgram("BM_BillInquiry_ui","2480-8-50000")

retVal = oSession.InvokeProgram("BM_BillInquiry_ui","2480-8-50.000")

retVal = oSession.InvokeProgram("BM_BillInquiry_ui","2480-8-50"+"000")

Parents Reply
  • 0 in reply to jepritch

    You could try something like:

    Set oBillInqUI = oSession.AsObject(oSession.GetObject("BM_BillInquiry_ui")

    retVal = oBillInqUI.Process(sBillNumRev)

    Does that work for you?  It's a little different in that it won't be in it's own session, it'll be modal to what you are doing, but should populate with the proper bill/revision.

    Elliott

Children