Skip to Content
Author's profile photo Tammy Powlas

Learn how to use Global Script Variables – Design Studio from the Learning Hub

Today (instead of watching pre-Super Bowl festivities) I checked out the SAP Learning Hub at training.sap.com

There are some updated materials for Design Studio if you are a Learning Hub subscriber.

Today was all about Global Script variables.

/wp-content/uploads/2016/02/1fighelp_882838.jpg

Source: SAP

From above, global script variables can be used in any script of your application.  See the “Note” that states script variable names used as URL parameters must start with a capital X

/wp-content/uploads/2016/02/2figapplicationglobalscriptvar_882839.jpg

The above shows the settings for the global script variable, named “Xmode” and the URL parameter is set to true.

/wp-content/uploads/2016/02/3tab_882842.jpg

This application has two tabs with a crosstab on each.  I don’t have the sorting on the columns enabled.

/wp-content/uploads/2016/02/4tabbutton_882843.jpg

On the second tab I have a print button

/wp-content/uploads/2016/02/5scriptonstartup_882844.jpg

The script on the application start up is shown above.  If the URL parameter mode is display, the user will not be able to see the print button or sort the columns; if the mode is set to navigate the user can interact with the application, see the print button and will be able to sort the columns

/wp-content/uploads/2016/02/6display_882845.jpg

The above shows the first tab of the application when the display parameter of the URL is passed – no sort icons appear on the crosstab columns.

/wp-content/uploads/2016/02/7display_882848.jpg

The above shows how the second tab appears with the display parameter; no print button appears

/wp-content/uploads/2016/02/7navigate_882849.jpg

When the navigate parameter is passed, the user can sort on the crosstab columns

/wp-content/uploads/2016/02/10navigate_882850.jpg

The user sees the print button on the second tab

See the video below:

Upcoming ASUG Design Studio Webcasts:

Assigned Tags

      Be the first to leave a comment
      You must be Logged on to comment or reply to a post.