- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2022 07:18 AM
i want to set all active incident number as hyperlink in my page which will open that incident record.
<?xml version="1.0" encoding="utf-8" ?>
<j:jelly trim="false" xmlns:j="jelly:core" xmlns:g="glide" xmlns:j2="null" xmlns:g2="null">
<g2:evaluate>
var gr=new GlideRecord('incident');
gr.addQuery('active',1);
gr.query();
</g2:evaluate>
<table width="100%" border="1" class="myTable">
<tr >
<td >Incident</td><td >Short Description</td><td>Caller</td>
</tr>
<j2:while test="$[gr.next()]">
<tr >
<td ><a href="https://dev108227.service-now.com/incident.do?sys_id="+$[gr.sys_id]>$[gr.number]></a></td>
<td>$[gr.short_description]</td>
<td>$[gr.caller_id.getDisplayValue()]</td>
</tr>
</j2:while>
</table>
I am getting this error
Element type "a" must be followed by either attribute specifications, ">" or "/>".
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2022 11:05 AM
Hi Saroj,
You can directly do like this.
<a href="https://dev108227.service-now.com/incident.do?sys_id=$[gr.sys_id]">$[gr.number]>Test</a>
Thanks
Sreeharsha
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2022 11:05 AM
Hi Saroj,
You can directly do like this.
<a href="https://dev108227.service-now.com/incident.do?sys_id=$[gr.sys_id]">$[gr.number]>Test</a>
Thanks
Sreeharsha
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2022 07:11 PM
Thanks Harshav
Its working now.