Adding links to report templates
You can add links to other parts of your system when you design report templates for Web Access and Ivanti Workspaces. For example, you can add an Add Note action to the report template that you apply to an Incident query so that users can add a note to the Incident directly from the query list without having to open the record first. Alternatively, you can design a Content gadget that uses images to represent quick links in your Self Service that launch your new Request form or Service Catalog dashboard.
You add these links using the control word applink:, which can be used in conjunction with links to different parts of the application. Each type of link can also take a number of parameters to identify exactly what to launch.
Command |
Example |
Mandatory parameters |
Optional parameters |
---|---|---|---|
action |
Add note |
function_name |
|
object |
An existing record such as the profile of the logged in user |
|
class_name
|
create |
Create a new record, such as New Request |
class_name |
lifecycle_name |
dashboard |
A shortcut to a dashboard |
|
id |
query |
A link to run a query |
class_name
|
query
|
Links are of the form:
applink:<command>?<parameter1>&<parameter2>
For example, to include a link in a report template on an Incident query that adds a note to the Incident, add the following to your report template HTML:
<a href="applink:action?function_name=AddNote">Click here to add a note</a>
To add a link to a query on a content gadget, create a link like this:
<a href="applink:query?class_name=KnowledgeManagement.Article&attributes=Title,Description,Effectiveness,CreateUser.Title,CreateDate&sort_by=CreateDate&enable_launch=false&title=Article%20List">Click here to view Articles</a>
To determine the correct way to format the links you want to add to your rich content, look at how the URL you want to put a link to is constructed when you make a link to it in Web Access.
If you use the object command with no parameters, it opens the current record. You cannot use this in Content gadgets.
You cannot use the action command in Content gadgets.
If you use the query command, you MUST include the title parameter as the final parameter.