Sage 100

 View Only
  • 1.  Does anyone know of a way to launch a ""foreign"" AL

    Posted 02-01-2013 08:02
    Does anyone know of a way to launch a ""foreign"" ALE look-up window from a button press or BOI? We have someone trying to place a button in Customer Maintenance that will pop-up the ""Customer/Item Last Purchase History List"" ALE from Sales Order Entry\Lines tab. Or in general, is there a way to launch an .M4L file via script?


  • 2.  RE: Does anyone know of a way to launch a ""foreign"" AL

    Posted 02-01-2013 08:38
    I believe you can't launch a lookup. But perhaps this is applicable perhaps not. On recent upgrade, Sales dept wanted in S/O Entry / Lines to have have the drop-down button above the item code default to Item Inquiry instead of Item Quantity Inquiry. I didn't want to mess with Sy_PopUp and it's cross-reference file so I create a separate Customizer link button with this script below. My point is you could supply the ARDivisionNo, CustomerNo, ItemCode that is in play for the order on the screen and include a DocumentType (e.g. ""O"" for Orders) to complete the key. Put that on the Process() line and it will pop up Customer Last Purchase Maintenance for that record. Then since Customer Purchase is up now, click Accept or Cancel there and click the Lookup. Or if they only wanted Customer Last Purch Maint with no record loaded, that's possible too. ' ------------ START -------------------------- ' Launch Item Inquiry for item number currently selected in SO Entry / Lines sItemCode = """" Set oLines = oBusObj.AsObject(oBusObj.Lines) ' Get the key fields retVal = oLines.GetValue(""ItemCode$"", sItemCode) ' Get associated object Set oUI = oSession.AsObject(oSession.GetObject(""IM_ItemInquiry_ui"")) ' Pop Item Inquiry. Note by using .Process it's not independent window ' You can't return to S/O Entry without closing Item Inquiry ' Independent windows are possible too retVal = oUI.Process(sItemCode) retVal = oSession.DropObject(""IM_ItemInquiry_ui"")