how to add knowledge icon next to short descrption
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-09-2017 12:34 AM
I want to add Knowledge icon beside short description on incident form.For this i have tried creating UI Macro and setted the UI macro in "Short description" Attribute field.
But it is not working...
Below is the UI Macro:
<?xml version="1.0" encoding="utf-8" ?>
<j:jelly trim="false" xmlns:j="jelly:core" xmlns:g="glide" xmlns:j2="null" xmlns:g2="null">
<a id="${jvar_n}" onclick="searchKnow()">
<img src="bulb.png" width="17" height="20" title="${gs.getMessage('Search Knowledge')}" alt="${gs.getMessage(Search Knowledge')}"/>
</a>
<script>
function searchKnow() {
var searchText = g_form.getValue('short_description');
var url = 'kb_find.do?sysparm_search=' + escape(searchText);
url += '%26sysparm_nameofstack=kbpop';
url += '%26sysparm_kb_search_table=incident'; //This example runs on the Incident table. Edit the table name as necessary
popupOpenStandard(url, "kb2task");
}
</script>
</j:jelly>
Can anyone help me??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-09-2017 04:49 AM
Hi Rakesh,
Now it is working .....
Thankq
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-27-2017 01:08 AM
Hi Rakesh,
But after clicking the book icon beside short description URL's are redirecting to as below:(see the difference between custom URL's and OOB (kb_find and kb_view URL's)
Can you please suggest me how to get that redirection...Actually im checking the kb_find and kb_view ui pages..not able to understand...