Portal Pages - Building Pages

Modified on Wed, 29 Jan at 3:04 PM

TABLE OF CONTENTS

Overview

The look and feel of Portal Pages is defined by the assigned wrapper. The content of Portal Pages is provided by UI Elements. This solution article explains the different types of UI Elements which can be added to Portal Pages. 


Note that the following pages are not UI Elements and cannot be added directly to a Portal Page (although links to these pages can be added to Portal Pages). These are covered separately:

  • Web-based Dashboards Help
  • Portal Forms (Surveys) Help
  • Test Sign-Offs (UATs)

Example Portal Page

The example below shows the configuration and resulting output of a Portal Page with five UI elements.

  1. Text/Heading
  2. Action Card
  3. Bar Chart
  4. Pie Chart
  5. Pie Chart



Layout Rows

The Layout Rows are containers for UI Elements. Layout Rows use predefined cell classes, which ensure that the distances between cells are appropriate for the entire row. Each Layout Row can contain between one and six UI Elements. The number of containers per row is controlled by the +/- buttons. The entire row can be moved up or down with the Drag button.



An example of a 3 Column Layout Row:


UI Elements

To add a UI Element a Portal Page must have been created. This article walks through the creation of new Portal Pages.

Once in the Portal Page Editor, drag the required UI Element into the Editor.


Note that the Common settings for each UI Element are covered in a separate section on this page.


Text / Heading

Once the Text / Heading UI element has been dragged into a Column Row, select this to edit its properties.

  1. Control the style of the text
  2. Add the text/header content
  3. The Common Controls are covered here
  4. The Row Show/Hide If Test allows the element to be shown or hidden. More information here

Image

  • Image Resource Id: Use the target button to pick an image. The image must have be uploaded into Administration -> Project Resources first. More information on Project Resources
  • Image URL: Enter the URL of an image if the image is not available in Project Resources
  • Image Alt Text: The text which will be shown if the image cannot be displayed
  • Custom Image Class: The CSS class which will be applied to the image
  • Maximum Height: The maximum display height of the image (pixels)
  • Maximum Width: The maximum display width of the image (pixels) 
  • Add a Border around the image: Adds a small rounded border to the image
  • Round the corners of the image: Rounds the corners of the image 

Horizontal Lines

Adds a horizontal line to the page.  They are useful to breakup two elements visually.


Datamining Reports

Adding a Datamining Report will display a table of data in the Portal page. It requires that the report has been saved.

  • Title: Text which appears above the report
  • DMR Report ID: Enter the ID of the report, or use the picker button
  • DMR Internal Name: If an Internal Name has been set in the report, this can be entered instead of the Report Id. The advantage of using the Internal Name is that the Portal Page is 'portable', meaning it can be used in a different instance of ManagementStudio (along with the DMR) without needing to modify it. Note use either the Report ID or the Internal Name, not both
  • DMR Results Filter: Choose which filters should be applied to the results
    • Results for only this user: Only show the user's data. Note that this requires that the Portal Page is authenticated so that the system can apply an appropriate filter. The data must include MigrationId field for this to work, though this column can be hidden.
    • Original Data Source (Keep Filters): Retain the Source and Filters saved within the report
    • Set Data Source to All (Keep Filters): Set the Source to All Items but retain the Filters saved within the report
    • Set Data Source to All (No Filters): Set the Source to All Items and clear any Filters saved within the report 
    • Reuse DMR cached on page: If any given Datamining Report is used multiple times on a Portal Page with different filters applied, this setting can be used on each instance to improve performance.
  • Display the DMR in compact mode: Displays the report with smaller margins
  • Add Search, Sort and Page: Adds extra controls to the report
    • Add Filter Row: Adds filters to the top of each column; the Add Search, Sort and Page option must be enabled
  • Select Top X Rows: Only display the top X rows of the report
  • Columns: Specify which columns to display, uses the internal names
  • Filter: Apply a filter to the report. The examples in the table below show how filters can be used when a Datamining Report is added to a Portal Page:
ReportFilter RequirementsPrereqsFilter

Applications report which includes Process

Display applications in the process '5. Complete'NoneApplications_Process = '5. Complete'

Applications report which includes Vendor

Display applications where the Vendor name starts with 'micro'NoneApplications_AppVendor like 'micro%'
User Migrations report which includes Assigned To
Portal SSO setup and working.

Portal Page using SSO has been created.

Applications_AssignedTo = '[UM-AssignedTo-UserName]'

User Migrations report which includes the Manager's Email which is stored in a Custom Form

Only display users managed by the person viewing the Portal PagePortal SSO setup and working.

Portal Page using SSO has been created.

CustomField_XXX = '[UM-Email]'
  • Bootstrap Table Style: Apply a style to the table. Examples



Datamining Report Tip: To add a link to a page to directly download the report in Excel format, use the syntax:

<a href='[MS-Url-DMR-XXX]?format=Excel'>Download Report</a>
  • XXX is the ID of the report

Pie or Bar Chart

Charts use saved Datamining Reports to display data visually. This example shows a vertical bar chart with the count of applications in each Process.


The settings used to create this chart:


  • Title: Text to appear on the chart
  • Title position: Where the title text appears
  • Chart type: Pie Chart/Horizontal Bar Chart/Vertical Bar Chart 
  • DMR Report Id: The ID of the report which contains the data to display in the chart
  • DMR Scope
    • Results for only this user: Only show the user's data. Note that this requires that the Portal Page is authenticated so that the system can apply an appropriate filter. The data must include MigrationId field for this to work.
    • Original Data Source (Keep Filters): Retain the Source and Filters saved within the DMR
    • Set Data Source to All (Keep Filters): Set the Source to All Items but retain the Filters saved within the DMR
    • Set Data Source to All (No Filters): Set the Source to All Items and clear any Filters saved within the DMR
    • Reuse DMR cached on page: If any given Datamining Report is referenced multiple times by different charts with different filters applied, this setting can be used to improve performance.
  • DMR Filter: Apply filters to columns. Syntax examples:
    • Applications_Process = '5. Live'
    • Applications_AppVendor like 'micro%'
    • Applications_Process = '5. Live' AND Applications_AppVendor like 'micro%'
    • See the DMR Filter help for DMRs above for further examples
  • Category Column: This is the column in the Datamining Report which will be used to create the slices (pie chart) or columns (bar chart). An example could be a Devices report where the Device Type is the Category Column. This would show pie chart slices or bar chart colunms of the Device Type.
  • Value Column (Optional): This should only be populated if a calculation is required to create the chart. For example, if the Average Disk Space need to be displayed for each Device Type, the populate the Value Column with the internal name of the column in the DMR showing the disk space. Note that this must be a number without any letters (E.g. 143.2 is fine, 143.2 GB is not)
  • Calculation: Choose what type of calculation should be performed for each slice/bar. In the example where the average disk space should be displayed for each device type. choose Average here.
  • Colour Column: If coulours have been setup in the Datamining Report, this field can be populated with the internal name of that column. The same colours will then be applied to the chart.
  • Legend is visible: 1 in screenshot
  • Labels are visible: 2 in screenshot 
  • Tooltips are visible: 3 in screenshot  

  • Labels Background: Set the colour of the background of the labels
  • Labels template: Changes the chart labels format. To only show the value (and not the column name) set it to #= value#

  • Tooltips Template: Changes the format of the tooltips. For example, changing it to {0}% would add a percentage character to the end of each tooltip

Action Cards

An Action Card enables you to incorporate an image, text, and a button within a box on a Portal Page. The screenshot above shows a three column row with an Action Card in each column. The button can open another Portal Page, open a Portal Form (also known as a Survey), open a web link, run a PowerShell script or various other functions. 


Configuration Settings

SectionSettingDescription
Action CardTitleThe text which appears at the top of the Action Card
Action Card
TextThe text which appears in the body of the Action Card
Action Card
Min Textbox Height (px)The minimum height of the textbox within the Action Card. Note that this does not control the overall height of the Action Card. To ensure a row of Action Cards are the same height configure this setting to be the same in each Action Card, then either:
a) ensure all the images are the same dimensions, or
b) set the Maximum Height (px) to be the same for each image
ImageImage Resc. IdImages can be uploaded into Admin -> Project Resources and used in Action Cards. Then the picker button can be used to choose the image, or the ID of the image can be manually entered
Image
Image Int. NameAs an alternative to using the Image ID, it's possible to use the Internal Name of the image
Image
Image UrlAn image from a URL can be displayed as an alernative to one from the Project Resources. Specify the URL here
Image
Image Alt TextUse this setting to set the Alt Text for an image (this is the text which displays when you hover over the image)
Image
Custom Image ClassSet the CSS class which applies to the image
Image
Maximum Height (px)Set the maximum height of the image in pixels
Image
Maximum Width (px)Set the maximum width of the image in pixels
Image
Add a Border around the imageAdds a border around the image
Image
Round the corners of the imgeRounds the corner of the image
ButtonButton TextThe text which displays on the button
Button
Button ActionOpen Portal Page: Opens a Portal Page
Open Portal Form: Opens a Portal Form (Survey)
Open Self-Schedule Page: Opens a self-schedule page
Open DMR Report Page: Opens a DMR in a web page
Open Dashboard Page: Opens a web dashboard
Execute Script: Execute a PowerShell script
Open URL: Opens any web URL

Once the Button Action has been set, the Action Target picker button allows the target to be chosen. Alternatively, the Internal Name of the target can be specified in Target Int. Name field
Button
Action TargetThe Action Target picker button allows the target of the button to be chosen
Button
Target Int. NameAs an alternative to the Action Target, the Internal Name of the target can be specified in Target Int. Name field
Button
Open Button InConfigures the button target to open in either the same web browser tab or a new one
Button
EmphasisSets the visual style of the button
Button
Display as a 100% wide buttonWhen this setting is checked the button will fill the width of the Action Card 
Button
Return to this pafe after completionIf a Portal Form (Survey) or Self-Scheduling Page are the target of the button, this option will attempt to return the user to this Portal Page when the user submits the Portal Form (Survey) or Self-Scheduling Page
Button
Script ArgsIf a PowerShell script is the target of the button, this option alllows up to three arguments to be passed to the script. 

Alerts or Call Outs

Configuration Settings

Setting
Description
Alert/CalloutSet the object to be either an Alert or a Callout. The screenshot above shows an example of each
TitleThe text which appears at the top of the object
Text
The text which appears in the body of the object

Landing Page Auth Redirect

This feature allows organisations to point all users at a URL which will redirect to them to different Portal Pages depending on the Blueprint the user in.



Buttons


                                                                 

SettingDescription
Button TextThe text which displays on the button
Button  ActionOpen Portal Page: Opens a  Portal Page
Open Portal Form: Opens a Portal Form (Survey)
Open Self-Schedule Page: Opens a self-schedule page
Open DMR Report Page: Opens a DMR in a web page
Open Dashboard Page: Opens a web dashboard
Execute Script: Execute a PowerShell script
Open URL: Opens any web URL

Once the Button Action has been set, the Action Target picker button allows the target to be chosen. Alternatively, the Internal Name of the target can be specified in Target Int. Name field
Action TargetThe Action  Target picker button allows the target of the button to be chosen
Target Int. NameAs an  alternative to the Action Target, the Internal Name of the target can be  specified in Target Int. Name field
Open Button InConfigures the button  target to open in either the same web browser tab or a new one
EmphasisSets the visual style of  the button
Display as a 100% wide buttonWhen this setting is  checked the button will fill the width of the Action Card 
Return to this pafe after completionIf a Portal Form (Survey)  or Self-Scheduling Page are the target of the button, this option will  attempt to return the user to this Portal Page when the user submits  the Portal Form (Survey) or Self-Scheduling Page
Script ArgsIf a PowerShell script is  the target of the button, this option alllows up to three arguments to be  passed to the script. 

                         


Common Controls

UI Element Controls


Common controls are available in the side panel for all UI Elements in the Page Builder when editing Portal Pages. They apply to all of the UI Elements:

  • Text / Headings
  • Images
  • Horizontal Lines
  • Datamining Reports
  • Pie charts/bar charts
  • Action Cards
  • Alerts or Call Outs
  • Buttons

When a UI Element is selected the available settings are displayed in the Common panel. 



Common ControlDetails
Add a Border around a UI ElementAdds a thin line around the element.
AlignAlignment within the UI Element. Default, Left, Right, Centre.
UI Element Div NameAssign a NAME to the Div that contains this UI element to enable targeting with JavaScript. New JavaScript code can be added in the Custom JavaScript/CSS section of the Portal Page Editor. 
UI Element Div ClassAssign a CLASS to the Div that contains this UI Element. New classes can be created in the Custom CSS area of the Portal Page Editor.
Show/Hide If TestThis is detailed below in the Show/Hide Section


Show/Hide Logic for both UI Elements and Rows


Although the logic for both Show/Hide and Row Show/Hide is identical, they differ in that one toggles the visibility of a UI element, while the other affects the entire row.


For a UI Element or Row to be visible, the condition must evaluate as true.


Logic Operators


OperatorAlternative OperatorLogic
==-eqEqual
!=-neNot equal
>-gtGreater than
>=-geGreater than or equal to
<-ltLess than
<=-leLess than or 
&&-andAnd
||-orOr
!-notNot



The evaluation does not support dates and wildcards..


Only keywords associated with the logged-in portal user or project-specific keywords are available for evaluation.


Evaluation Examples


A use case for this function would be to show or hide options when a user logs in to a portal page.


Is the user in a DU? If not show the DU Selection Action Card.

        "[UM-DeployUnit]" == "" 


Is the user in a DU but has no slot booked? Then show the Self Schedule Action Card.

        "[UM-DeployUnit]" != "" && "[UM-DeployUnitSlotStart]" != "" 


Is the User Migration CustomFlag1 ticked?

        "[UM-CustomFlag1]" == "True"


Or


Is the user in the Process called Scheduling? Show a Row with a "Scheduling" Graphic Banner

            "[UM-Process]" -eq "Scheduling"


Is the user in Sub Process called "Ready for migration"? Show a Row with a "Waiting For Migration" Graphic Banner.

        "[UM-SubProcess]" -eq "Ready for migration"





Further Support

If you require further support, please visit ManagementStudio's Service Desk to search the knowledge base or create a new support ticket.