Skip to end of metadata
Go to start of metadata

Scripting - Radio Button



Create:
Regina Sheynblat

Error rendering macro 'page-info'

com.atlassian.confluence.user.ConfluenceUserPreferences.getDateFormatter(Lcom/atlassian/confluence/core/FormatSettingsManager;)Lcom/atlassian/confluence/core/DateFormatter;

Last Update:
Regina Sheynblat

Error rendering macro 'page-info'

com.atlassian.confluence.user.ConfluenceUserPreferences.getDateFormatter(Lcom/atlassian/confluence/core/FormatSettingsManager;)Lcom/atlassian/confluence/core/DateFormatter;

Scripting - Radio Buttons Example


SAP Screen Personas- by Regina Sheynblat

Purpose

This is a quick guide to show you how to script Radio Buttons in your SAP Screen Personas Flavor. 

Radio Buttons Example 

Transaction: VA01 Example

Instead of Order Type being a F4 Function,  replace with 3 Radio Buttons.

 

 Define: Radio Buttons, Labels, Text Fields and Script Button

Use If/Else If to find out which Radio Button is Selected

 

 For the simplicity of the demo, Pre-Fill Sold-to-Party and Ship-to-Party

 

For simplicity of the demo add one to PO number and Save all the Information

 

Read the Status Bar and save the information into a variable and go back to the prior screen

 

Paste the Results of the Status Bar in the Status Bar Field on the VA01 screen

 

The whole script

RadioButton Script
if(session.findById("wnd[0]/usr/radPersonas_1453326676704").selected=true)  {session.findById("wnd[0]/usr/ctxtVBAK-AUART").text="aa";} 
else if (session.findById("wnd[0]/usr/radPersonas_1453326704231").selected=true)  {session.findById("wnd[0]/usr/ctxtVBAK-AUART").text="aebo";} 
else if (session.findById("wnd[0]/usr/radPersonas_1453326719647").selected=true)  {session.findById("wnd[0]/usr/ctxtVBAK-AUART").text="cs";} 
var number=session.findById("wnd[0]/usr/txtPersonas_1453329193248").text; session.findById("wnd[0]/tbar[1]/btn[5]").press(); 
 
session.findById("wnd[0]/usr/subSUBSCREEN_HEADER:SAPMV45A:4021/subPART-SUB:SAPMV45A:4701/ctxtKUAGV-KUNNR").text=1; session.findById("wnd[0]/usr/subSUBSCREEN_HEADER:SAPMV45A:4021/subPART-SUB:SAPMV45A:4701/ctxtKUWEV-KUNNR").text=1; 
PO = number +1; 
session.findById("wnd[0]/usr/subSUBSCREEN_HEADER:SAPMV45A:4021/txtVBKD-BSTKD").text = PO; 
session.findById("wnd[0]/tbar[0]/btn[11]").press(); session.findById("wnd[1]/usr/btnSPOP-VAROPTION1").press(); 
var statusbar=session.findById("wnd[0]/sbar").text; 
 
session.findById("wnd[0]/tbar[0]/btn[3]").press(); session.findById("wnd[0]/usr/txtPersonas_1453329200562").text=statusbar; 
 

 Final Screen

Please check back for more content in the future.

  • No labels