Rendering List Data with XSLT Transformations
Using an XSLT document it is possible to create a custom rendered UI page in the AdminPortal for an XML document that is a list type in EngageIP.
The most common uses of the Transform feature are for reports. Let's consider the example of the Statement Of Accounts report. The default UI render for the Statement Of Accounts looks like this:
Â
To utilize the data supplied by this page and generate a different output an XSLT document is created. Each list view in EngageIP can have one XSLT document associated with it. To add an XSLT document to a list view perform the following steps:
Select the Setup tab in the AdminPortal.
Select the Stylesheets link in the Extensibility XtendaBase section
Click the Add button
Select a List by name using the ListName selection box
Enter (or paste) the XSLT document contents into the Data text box
Click Save.
The following is an example XSLT that renders the data from the Statement Of Account report to an alternate HTML view:
Statement Of Account Example Transform XSLT:
After saving an XSLT document to the Stylesheet configuration for the list a Transform button will now be present on the AdminPortal page for that specific list. Clicking the Transform button will apply the XSLT transformation on the data set and present a new screen with the output of that transformation. In our example of the Statement Of Account page it would look like this:
While all the data is identical the page looks very different from the stock view in the AdminPortal. The limitations are the XML data coming from the list view in the AdminPortal for each page and what XSLT supports as a language.