- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-09-2016 10:00 PM
Hi,
I want to attach a link in a catalog item. and i want to add it through ui pages. the link is:
when I am adding it in ui page, it is showing the error: The reference to entity "sysparm_id" must end with the ';' delimiter.
how to solve it . is there any other procedure ?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-09-2016 10:12 PM
Hi Sneha,
These lines are from wiki. & needs to be replaced with '${AMP}' in your code i guess.
Ampersands in Jelly can cause you grief because Jelly is XML. Use ${AMP} to insert an ampersand in Jelly. If you are writing JavaScript that appears in the HTML part of say a UI page or UI macro that is actually going to run on the browser you are better off putting this code in the "client script" field and that way you can avoid escaping issues. However, if you really must put it in the "HTML" field, you will need to do something like this:
ta = ta[1].split('$[AMP]');
Thanks
Srini
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-09-2016 10:12 PM
Hi Sneha,
These lines are from wiki. & needs to be replaced with '${AMP}' in your code i guess.
Ampersands in Jelly can cause you grief because Jelly is XML. Use ${AMP} to insert an ampersand in Jelly. If you are writing JavaScript that appears in the HTML part of say a UI page or UI macro that is actually going to run on the browser you are better off putting this code in the "client script" field and that way you can avoid escaping issues. However, if you really must put it in the "HTML" field, you will need to do something like this:
ta = ta[1].split('$[AMP]');
Thanks
Srini
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-09-2016 11:12 PM
Hi Srinivas,
${AMP} worked. thank u
bt using $, is this a best practice ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-09-2016 11:15 PM
Hi Sneha,
Glad that helped
$ in this case perfectly fine.
Thanks
Srini
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2016 12:41 AM
Oh Great
Thank u