Skip to end of metadata
Go to start of metadata

Scripting - Creating a List Report with use of a template



Create:
Former Member

Error rendering macro 'page-info'

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

Last Update:
Former Member

Error rendering macro 'page-info'

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

Scripting - Creating a List Report with use of a template


SAP Screen Personas- by Former Member

 

Notice the simplification of transaction VA05N below.

With the use of Templates, users gain the ability to drag and drop specific wanted parameters from the original screen of any transaction. After hiding all other parameters not being used, a much cleaner presentation becomes available. Meant to increase both usability and efficiency, two Fiori-Inspired templates are used in the examples below:

Template Titlebar_Fiori-Inspired


Template ListReportHeader_Fiori-Inspired

 

Scripting for Screen 1:

'Clear' Script Button
//Script Button: Clear//
session.findById("wnd[0]/usr/ctxtSAUART-LOW").text + "";
session.findById("wnd[0]/usr/txtPBSTKD").text = "";
'Go' Script Button
//Script Button: Go//
session.findById("wnd[0]/tbar[1]/btn[8]").press();

Note: It is very important to attach the scripts accordingly to their script button in the flavor editor after creation in the scripting editor.

 

 

Scripting for Screen 2:

'Clear' Script Button
//Script Button: Clear//
session.findById("wnd[0]/usr/subPersonas_14695608459695/subPersonas_146956087739787/txtPersonas_146956096759080").text = "";
session.findById("wnd[0]/usr/subPersonas_14695608459695/subPersonas_146956087739787/txtPersonas_146956096375751").text = ""; 
session.findById("wnd[0]/tbar[0]/btn[3]").press();
session.findById("wnd[0]/usr/ctxtSAUART-LOW").text = "";
session.findById("wnd[0]/usr/txtPBSTKD").text = "";
'Go' Script Button
//Script Button: Go//
var sOT = session.findById("wnd[0]/usr/subPersonas_14695608459695/subPersonas_146956087739787/txtPersonas_146956096759080").text;
	sOP = session.findById("wnd[0]/usr/subPersonas_14695608459695/subPersonas_146956087739787/txtPersonas_146956096375751").text;
session.findById("wnd[0]/tbar[0]/btn[3]").press();
session.findById("wnd[0]/usr/ctxtSAUART-LOW").text = sOT
session.findById("wnd[0]/usr/txtPBSTKD").text = sOP
session.findById("wnd[0]/tbar[1]/btn[8]").press();

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

  • No labels