Overview:

This Howto Paper 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.

/wp-content/uploads/2015/10/untitled_816425.png

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:

/wp-content/uploads/2015/10/untitle2d_816426.png

10.Click on button “Template 2”

11. Click on the PowerPoint Export button again – you will see that Template 2 is used:

/wp-content/uploads/2015/10/untitled3_816427.png

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!

To report this post you need to login first.

Be the first to leave a comment

You must be Logged on to comment or reply to a post.

Leave a Reply