SATGUI Examples
S@
Home SATGUI SATSHELL SATFORM SATFILTER SATREPORT SATMYSQL License Download Examples Contact

"SATADMIN: Profiles". This is the code used by the SATGUISVR to generate the "Profiles" display.

(See SATGUI Server Administration).

This example uses toolbar (with "Balloon Help"), Multi column list, entry fields, radio buttons and user defined validations.

Sample Screen

Example SAT/DL

newScreen {{"SATADMIN: Profiles"} 77x14}
addToolbar {flat
   {reload help(Refresh) profiles}
   {}
   {home help(Home) main}
   {computer help(Connections) connections}
   {person help(Users) users}
   {}
   {disk help(Save) validate {saveprofile action profile access}}
   {trash help(Delete) {deleteprofile action profile}}
}
addMultiList {profiles 1,2 10 {Action,16 Profile,12 Access,12} copy(action,profile,access) outline yscroll}
addEntries {47,3 {10,16 {Action satadmin1} {Profile satadmin1}}}
addRadioButtons {Access 58,8 {+Normal Disabled} outline title}
All of the addToolbar options make use of the balloon help facility. The disk option ("Save") also has validation set, which causes the entries to be validated against the specified patterns ("satadmin1") when this option is selected. If the validation fails the "saveprofile" action is not processed, a message is displayed on the Message Line and the cursor is positioned in the first field which failed the validation.

The copy option used by the addMultiList command will copy the columns from a single/double click selected line to the specified items. In This case, the first column will be copied to the "access" Entry, the second to "profile" Entry and the third to "access" Radio Buttons.

The Validation pattern, "satadmin1", used by the addEntries fields is set by the "SATADMIN: Activity Summary".


Copyright © 2003 Adrian Davis.