Overview
Power pages can be defined as custom pages that can be added to the Action Hub, previously known as XMWorkspace. Power pages normally consist of an ASPX file and it’s associated code, written in C#. These pages can be written by anyone with the correct priveledges and can be created within the Action Hub or created elsewhere and uploaded to the Action Hub with the help of XMDesigner’s Transfer Manager. Power Pages also makes it possible for administrators to easily track who added which custom page to the Action Hub and logs all changes made to existing custom pages.
Features
Power pages are listed in a table in the Action Hub. The information kept in this table are as described below.
- Page name (name of the page)
- URL (URL that links to the page)
- Version (latest version available of the page)
- Modified By (last person to have modified the page)
- Modified At (last date and time the page was modified)
Synchronize Files
After you have transferred power pages to a different Action Hub instance in XMDesignerIs used to configure XMPro BPM solutions. using the Transfer Manager, you will be able to see them in Action Hub. However, all of the power page files will not be automatically available in the location of the Action Hub instance where you transferred them to. To make sure that they are available, click on the Synchronize Files button. After the files are synchronized, the links displayed for the power pages you transferred will navigate you to your pages when clicked on.
Creating a new power page
To create a new power page, follow the steps listed below.
- Click on the “+”-icon in the header row of the grid.
- Choose an appropriate name for the page.
- Make the changes needed in the markup. Please note that the code provided to you in the Markup-tab is a template, which you can use to build upon when writing your own code or replace completely with your own code.
- Click on the Code Editor-tab. As in the Markup-tab, the code provided to you here is a template, which you can use to get started writing your own code, or you can completely replace it with what you’ve written.
- Edit the code, as needed.
- Click Save and Close.
Example
The code, markup and preview below is an example of a power page.
To get this example to work, do the following:
Step 1:
Replace the connection string in the gridDataSource_Init(object sender, EventArgs e) method in the code editor with a connection string of your own.
Step 2:
Edit the data source of the grid to display the data from your own database; the columns you add here should be contained in the SELECT statement mentioned in Step 1.