Scripting

  • 1.  Is the a limit to the number of scripts that can b

    Posted 11-28-2018 13:24
    Is the a limit to the number of scripts that can be attached to the same event? Customer has four scripts on SO invoice post read, and when he complies them one of them (not always the same one) disappears...it is not in the compiled script for that screen


  • 2.  RE: Is the a limit to the number of scripts that can b

    Posted 11-28-2018 13:26
    Not that i'm aware of, the individual scripts should be combined into a single Subroutine for the PostRead event within the SO_InvoiceHeader_Bus.vbs file. Hae you tried assigning them different priority levels?


  • 3.  RE: Is the a limit to the number of scripts that can b

    Posted 11-28-2018 13:27
    They do have different priorities


  • 4.  RE: Is the a limit to the number of scripts that can b

    Posted 11-28-2018 13:56
    Phil, I'm not aware of any limitations either.


  • 5.  RE: Is the a limit to the number of scripts that can b

    Posted 11-28-2018 14:16
      |   view attached
    We have many, but one thing that can happen is a bad path when compiling from a workstation. Always use a relative path, not a local path or mapped drive. If the script compiler cannot find a file, it doesn't insert it into the .vbs (with no error).


  • 6.  RE: Is the a limit to the number of scripts that can b

    Posted 11-28-2018 14:17
    Bonus with ..\CM\Script\ as your path = no re-linking scripts during upgrades.


  • 7.  RE: Is the a limit to the number of scripts that can b

    Posted 11-29-2018 12:09
    Looks like this what happened: When editing a script directly from the User-Defined Scripts screen, the priority reverts to the default 500 when the script is Accepted, overwriting whatever script/s was/were set for priority 500. Can be avoided by editing from the ""User-Defined Script Edit Script"" dialog and remembering to correct the priority when it reverts back to 500 before clicking OK.


  • 8.  RE: Is the a limit to the number of scripts that can b

    Posted 11-29-2018 12:15
      |   view attached
    I believe multiple scripts with the same event & priority will be merged within the .vbs, so it may only look like it is overwriting. If you use an Exit Sub, a merged script may consequently be missed improperly.