Scripting

  • 1.  I have a simple little script that checks the ware

    Posted 03-05-2018 11:41
    I have a simple little script that checks the warehouse on PO header, SO header and IM transaction header and if they haven't selected a legitimate warehouse, throws an error. It works great at OnPanelExitPHeader (and I have a separate one to catch OnPanelExitPHeaderW) but just plain doesn't run on exit of PO Material Requisition Header. I'm not even getting my debug lines to fire, it is acting like the script isn't there at all. Is there something special about Material Requisition that you guys know and I don't? This is 2017.1 Advanced.


  • 2.  RE: I have a simple little script that checks the ware

    Posted 03-05-2018 11:49
    I ran into something similar when I tried a post load script on one of the common entry panels accessed through ar cash receipts entry. Alnoor said it is possible that the supporting code needed for the UI scripts might not have made it into everything. So I had to figure out another way to do it. Also, I don't remember what the exact version was, either 2015 or 2016.


  • 3.  RE: I have a simple little script that checks the ware

    Posted 03-05-2018 14:38
    Thanks @DavidSpeckII It is good to know that I'm not just missing something obvious. I've added multiple table pre/post reads for the same script and the client thinks it will be okay. Workaround Accomplished!


  • 4.  RE: I have a simple little script that checks the ware

    Posted 03-06-2018 01:38
    Took a look at PO_MaterialReq_UI.pvc. With Customizer UI Script Events, by creating the Panel OnExit entries for pHeader and pHeaderW, the system expects to find OnExitpHeader and OnExitpHeaderW functions in the UI class. However those functions (methods) don't actually exist in PO_MaterialReq_UI.pvc !! This omission is a a neglected duck situation (ugly duckling??). You should report it to Sage. It's an easy fix. Even in PO_Return_UI (Rtn of Goods Entry), there are OnExitpHeader and OnExitpHeaderW functions, both of which are doing nothing at all but by just existing it enables Panel Exit UI scripting.