Create A Web Part - Symantec SERVICEDESK 7.0 - CUSTOMIZATION GUIDE Manual

Customization guide
Table of Contents

Advertisement

Create a Web Part

Symantec® ServiceDesk Customization Guide 7.0
These example instructions create a new custom web part to add to a dashboard in
ServiceDesk. The web part is created in a Web Forms project in Symantec Workflow.
The web part is a simple stoplight that reads in a random number and based on the
number, shows either red, yellow, or green.
To create a new web part (example)
1.
Create a new Web Forms project. Name it indicative of what the web part will do, for
example, "MyCompany.Dashboard.StopLight"
2.
Add an "Add New Data Element" component and configure as follows:
Data Type - Number (Integer)
Output variable name - Counter
3.
Add a Form Builder component, and connect the components accordingly:
4.
Open the Form Builder component and configure as follows:
When prompted, answer no to creating an outcome component.
Add a Stoplight component to the form and resize it as desired. Configure it as
follows:
Image states can remain as they are by default (red, yellow, green)
Set the default state to red
Open the Image Selection model for configuration
Clone the existing End component twice and rename them to Red, Yellow
and Green and open each one to select the corresponding color option based
on the name of the component
Add a "Create Random Number" component, and connect the Start
component to it. Configure the "Create Random Number" component as
follows:
Result name - ColorDecision
Check "Use min and max"
Min value = 1
Max value = 3
Add a "Number Range Rule" component and connect the Create Random
Rule component to it. Configure the "Number Range Rule" component as
follows:
Compare variable - ColorDecision (use the browse capability to pick this
variable)
Handle Equals by - Make Explicit
Enter values 1, 2 and 3 in separate lines for comparison purposes.
Connect the "Number Range Rule" output paths in the following manner:
Less than 1, Equals 1 and 1..2 connected to Green end component.
Equals 2 and 2...3 connected to Yellow.
Equals 3 and Greater than 3 connected to Red.
60

Advertisement

Table of Contents
loading

This manual is also suitable for:

Servicedesk 7.0

Table of Contents