Example 2: Get a the current form and hide a groupbox

MAIN
  DEFINE w ui.Window
  DEFINE f ui.Form
  OPEN FORM f1 FROM "customer"
  DISPLAY FORM f1
  LET w = ui.Window.getCurrent()
  LET f = w.getForm()
  MENU "Test"
    COMMAND "hide" CALL f.setElementHidden("gb1",1)
    COMMAND "exit" EXIT MENU
  END MENU
END MAIN