Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

In this example we'll develop an action sequence to generate an HTML report containing financial data for the current user's region. This suggests that when the user logs in, we need to identify the user's region, and store this information someplace that we can use later in our action sequence.
To identify the user's region, let's create a new action sequence in Eclipse using the action sequence editor.

To create a new action sequence, click on the Design Studio icon Image Added in the Eclipse tool bar, and select New Action Sequence. Name the action sequence usernameToRegion.xaction, and place it in the samples/filters folder of the repository. The Container text box in the wizard should contain this text: /pentaho-solutions/samples/filters.

Info
titleThe BI Platform Repository

The repository is where resources, like action sequence definition documents are stored in the Pentaho BI Platform. The Platform has a variety of repository implementations. The repository used by the Pentaho Preconfigured Install is a file system repository, and it is located in the pentaho-solutions folder of the Preconfigured Install.

...

Code Block
fullName = "";
fullNameArray = new Object();
fullNameArray\["joe"\] = "Joe Pentaho";
fullNameArray\["suzy"\] = "Suzy Pentaho";
fullNameArray\["pat"\] = "Pat Pentaho";
fullNameArray\["tiffany"\] = "Tiffany Pentaho";
fullName = fullNameArray\[name\];

This code simply maps the user's login name to the user's full name, and places the full name in a JavaScript variable called fullName. fullName will be available to the next action in our action sequence.

...