Scripting

  • 1.  Is there a list available of the ""hidden"" script p

    Posted 04-05-2018 12:14
    Is there a list available of the ""hidden"" script properties available, such as oBusObj.creditexceeded ? I learned about this one from this group, but now wondering if there are others... for example, there is a prompt that asks if you want to Promote a Quote to an Order. Is there an object that can be called to script the user who promotes an order? How does one learn of these available objects?


  • 2.  RE: Is there a list available of the ""hidden"" script p

    Posted 04-05-2018 12:31
    @AlnoorCassim , @DavidSpeckII


  • 3.  RE: Is there a list available of the ""hidden"" script p

    Posted 04-05-2018 12:50
    I'd look in the help files for the properties available on the business object you're working with. Search for ""creditexceeded"" to see what I mean.


  • 4.  RE: Is there a list available of the ""hidden"" script p

    Posted 04-05-2018 12:51
    1. File Layouts and Program Information. 2. Enable debugging, then in a task, click the Sage icon in the upper left menu bar, expand Debugging Environment, click Command mode window, click Halt, then type OBJ. (you can thank @AlnoorCassim for this tip). 3. Enable debugging, then in a task, click the Sage icon in the upper left menu bar, expand Debugging Environment, click Command mode window, click Halt, then type DUMP. You can then press enter to page through all of the details. 4. Use a little ProvideX program I wrote to dump the current program to a text file in the MAS90\Home\Textout directory. To use it, have the DumpData.pvc file in MAS90\CM\Script then from the debugging menu, you type the following, excluding the brackets, [PERFORM ""..\CM\Script\DumpData.pvc""]. The text file will reveal a lot about the current state of the program but if executed from the debugging window, the data dumped will be in the context of the UI object, to get the data at a table business object level, you define a UDS on the table and event and in the script it simply has the following, excluding the brackets, [oScript.Execute ""PERFORM """"..\CM\Script\DumpData.pvc""""""]. I've attached both the pvc and vbs. The attached vbs also has a line before the dump calling the ReadAdditional method just to make sure any child collections and objects are initialized before dumping the data. You can comment out as needed.

    Attachment(s)

    pvc
    DumpData.pvc   198 B 1 version
    zip
    DumpData.zip   239 B 1 version


  • 5.  RE: Is there a list available of the ""hidden"" script p

    Posted 04-05-2018 13:26
    This is great, thank you!