Scripting

  • 1.  99.9% done enhancing my scripting solution for Pri

    Posted 07-21-2014 11:44
    99.9% done enhancing my scripting solution for Price Lookups greater than the 5 standard ones and I have ran into this final snag: A button script on the Price Lookup panel (sub panel of Item Maintenance) works fine, but only for the 1st customer selected. Subsequently, after clicking OK and selecting another customer number, the button dims and goes inactive. Things I've tried: 1. Rebuilt Customizer Log 2.. Updated Custom Panels to Current Level 3. Reset Panel 4. Fails on 4.40, 4.50 and 5.10 both standard and advanced 5. Fails using any script including the provided test.vbs Any ideas out there?


  • 2.  RE: 99.9% done enhancing my scripting solution for Pri

    Posted 07-21-2014 13:56
    Perhaps @AlnoorCassim can address in the upcoming scripting class...


  • 3.  RE: 99.9% done enhancing my scripting solution for Pri

    Posted 07-21-2014 14:22
    Dan this has to do with the button groups a Customizer link button is associated with (CMLINK and BUTTON) and the default behavior of DPriceLookup to disable all controls when OK is pressed. This is how I would deal with it: 1. Make a backup of the IM\Custom\<user>-<company>\IM_ITEM.M4L file 2) DFDM open that M4L file (you can open these with DFDM - when you click Browse button hit the drop-down where it says ""MAS90 Data Files .."" and choose ""All Files (*.*) "" 3) Click the lookup in DFDM and find the record for the DPRICELOOKUP control where you see the BT_LINK_x associated. 4) In Field 22, you will probably see CMLINK,BUTTON. Just blank it out. If you get stuck in a ""Do you want to convert this field to numeric"" then alpha loop, instead of blanking out just put in something invalid like DanWasHere This should cause the Customizer button to never toggle off in Item Price Lookup. So that gets you out of the woods except for the sitatuion where the button stays enabled even when a Customer No and Price Level have not been entered. So just put some exception code in your script to handle that.


  • 4.  RE: 99.9% done enhancing my scripting solution for Pri

    Posted 07-21-2014 17:07
    @AlnoorCassim - At what point will this modification be reset? When installing/reinstalling LM and the system files? Migrating to the next level? Saving the CO panel?


  • 5.  RE: 99.9% done enhancing my scripting solution for Pri

    Posted 07-21-2014 17:25
    It's a standard Customizer button with a script tied to it so AFAIK it doesn't get reset by anything. I have heard in a few unusual cases the CM Update Panels utility (when a certain Ext Soln is installed) instead of merging controls into the custom library (M4L) will overwrite some of the controls. I don't think Dan would need to worry about that.


  • 6.  RE: 99.9% done enhancing my scripting solution for Pri

    Posted 07-21-2014 18:51
    Maybe next year I will renew a subscription with @AlnoorCassim instead of Sage. Thanks very much.