GuiXT Tutorial General Topics 1 2 3 4 5 6 7 8 Add radio buttons 9 10 11 12 continue
It is easier to choose from a small list of given values than to remember and write out the value each time. The standard value help (F4) in R/3 is a little lengthier than necessary for a small number of alternative values. GuiXT makes it possible to represent these alternatives by means of radio button groups, and furthermore to use comprehensibe text rather than codes. 

This makes familiarization with the work so much easier for the new user. For up to about 7 alternatives, clicking a radio button is also quicker and easier for the practiced user. Radio buttons do take up a little more space, however. 

 
Dealing with order entry, we assume that there is only one sales organization and only one distribution channel, and that only a small number of known alternatives are used for the remaining fields.    In addition, we want to graphically display the choice of sales office (Paris or Hamburg), while at the same time putting a friendly face on the screen. 
 
// F r a m e   w i t h   c o m p a n y   l o g o 
Offset      (1,1)
Box         (0,0)   (11,104)    "Customer order"
Image       (0.4,0) (11,16.4)   "solaris.bmp" 


//  O r d e r  t y p e  
Offset      (2,20) 
Box         (0,0)   (7,26)  "Order type"
RadioButton (1,1)           "Cash sale"              [Order type] "CS"
RadioButton (2,1)           "Rush order"             [Order type] "RO"
RadioButton (3,1)           "Internet order"         [Order type] "IO"
RadioButton (4,1)           "Spare part order"       [Order type] "SPO"
RadioButton (5,1)           "Consignment issue"      [Order type] "CI"
RadioButton (6,1)           "Returns"                [Order type] "RE"

//  D i v i s i o n
Offset      (2,51)
Box         (0,0)   (7,22)  "Division"
RadioButton (1,1)           "Heating pumps"          [Division] "01"
RadioButton (2,1)           "Solar techniques"       [Division] "02"
RadioButton (3,1)           "Household goods"        [Division] "03"
RadioButton (4,1)           "Printing machines"      [Division] "04"
RadioButton (5,1)           "Services"               [Division] "04" 
RadioButton (6,1)           "Miscellaneous"          [Division] "00"

//  S a l e s   o f f i c e
Offset      (2,78)
Box         (0,0)   (7,25)  "Sales office"
Image       (0.4,0) (7,7)   "Paris.bmp" 
Image       (0.4,8) (4,25)  "Hamburg.bmp" 
RadioButton (5,13)          "Hamburg"                [Sales office] "0002"
RadioButton (6,9)           "Paris"                  [Sales office] "0004"

// L i s t s
Offset      (11,20) 
PushButton  (0,0)           "@3D\QList of inquiries@Inquiries"    "/OVA15" 
PushButton  (0,14)          "@3D\QList of quotations@Quotations"  "/OVA25" 
PushButton  (0,28)          "@3D\QList of orders@Orders"          "/OVA05"

// A d d i t i o n a l   i n f o r m a t i o n
Offset      (10,63)
Image       (0,0)  (2,40)   "neu_boston.bmp"  "-plain"

// D e f a u l t s
Default   [Sales organization]   "0001"
Default   [Distribution channel] "01"

// U n u s e d  f i e l d s
del [Organizational data]  
del [Order type] "-Triple"      
 

Let us look at the new elements. Through "offset" you specify an offset that is added to all subsequent screen coordinates. This facilitates the positioning of field groups during the design of new screen layouts. The command radiobutton places a radio button into the screen. It represents the value that you specify in the radiobutton command. Finally, the default command can be used to specify a fixed input value for certain fields. 
 

 Continue