NEW Button

Is there a way to add code to activate the "NEW" Button on a window in Sage X3 U9?

  • In my window definition I set O = 'OK' and N = "New"

    #---- For standard buttons to be enabled their code needs to be in this variable ----#
    CHBOU+="ON"

    #---- This function removes the button code from the CHBOU variable ----#
    Call VIREBOUT(CHBOU,"O") From GOBJET
    Call VIREBOUT(CHBOU,"N) From GOBJET