Sage 100

 View Only
  • 1.  how to change text in a label in a script

    Posted 04-11-2025 15:05

    Sage 100 2022 Premium - I need to change the text of a label on the sales order header screen conditionally based on a field value.  Al the Script.SetUIControl examples I see are for enable and disable.  Anyone have an example with the syntax of changing the label's text (and how to reference the correct label)?

    Thanks!



    ------------------------------
    Phil McIntosh
    Friendly Systems
    ------------------------------


  • 2.  RE: how to change text in a label in a script

    Posted 04-14-2025 02:30

    @Phil McIntoshI have one that I can send you. It's a bit elaborate in that it changes the user label and field (so as to avoid a panel modification) temporarily for use as a warning message and resets them on a detail pre-write. 



    ------------------------------
    Dan Burleson
    Software Consultant
    Connex Software
    Corvallis OR
    541-829-1054
    ------------------------------



  • 3.  RE: how to change text in a label in a script

    Posted 04-14-2025 17:24
    Edited by Dan Burleson 04-14-2025 19:50

    @Phil McIntosh I cleaned them up. The "Set" version could be set on a column Post Validate event and the "Reset" version could be set on a Table Post Write event to restore them to their original values. They modify the "User" label and the "USERLOGIN" fields on the S/O data entry panel and could be used with others.



    ------------------------------
    Dan Burleson
    Software Consultant
    Connex Software
    Corvallis OR
    541-829-1054
    ------------------------------

    Attachment(s)

    txt
    CNX_MPL_Set.txt   852 B 1 version
    txt
    CNX_MPL_Reset.txt   799 B 1 version


  • 4.  RE: how to change text in a label in a script

    Posted 04-14-2025 19:44

    Thanks!



    ------------------------------
    Phil McIntosh
    Friendly Systems
    ------------------------------



  • 5.  RE: how to change text in a label in a script

    Posted 04-18-2025 01:16

    Thanks @Dan Burleson !



    ------------------------------
    Alnoor Cassim
    Accounting Systems, Inc. (ASI)
    ------------------------------