SAP Design Studio Export Add on: How to use dynamic scripting!
This How-to shows how you can use DesignStudio Scripts to toggle parameters of the Design Studio Export by a click of a button.
In this simple example we want to change the PPT Template. We add two buttons in our application to toggle the templates.
Instructions
1. Add two buttons to your application – "Template 1" and "Template 2" in our example
2. Upload the first PowerPoint Template via the Additional Properties Pane. This automatically creates a new ID in the "PowerPoint Template" Property. In our case:
d46b6daf-c389-4ba8-bfb5-2711d1439b57
3. Upload the first PowerPoint Template via the Additional Properties Pane. This automatically creates a new ID in the "PowerPoint Template" Property. In our case:
5e04e9d0-5743-4352-a23d-f8d7a8b94606
4. Create a script for the onClick event of the "Template 1" button:
OPENBIEXPORT_1.setPptTemplate("d46b6daf-c389-4ba8-bfb5-2711d1439b57"
5. Create a script for the onClick event of the "Template 2" button:
OPENBIEXPORT_1.setPptTemplate("5e04e9d0-5743-4352-a23d-f8d7a8b94606");
6. Now execute the application
7. Click on the PowerPoint Export button – you will see that Template 2 is used (latest uploaded template)
8. Click on button „Template 1“
9. Click on the PowerPoint Export button again - you will see that Template 1 is used:
10.Click on button "Template 2"
11. Click on the PowerPoint Export button again - you will see that Template 2 is used:
You can use the same scripts also on the onSelect event of tab strips, so different PowerPoint documents are generated depending on the tab that the user has selected:
if (TABSTRIP_1.getSelectedTabIndex() == 1) {
OPENBIEXPORT_1.setPptTemplate("d46b6daf-c389-4ba8-bfb5-2711d1439b57");
} else {
OPENBIEXPORT_1.setPptTemplate("5e04e9d0-5743-4352-a23d-f8d7a8b94606");
}
Or you can use the scripts to generate language - or organization specific presentations depending on the user meta data!
Creation date: 08.10.2015
Category: Installation & Configuration
back to overview