How Display a table list View In UI Page.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2020 11:08 AM
Hey I have a requirement where i need to show the associated work notes using the UI action on the table and if the service desk users wants he will be able to delete selected worknotes or records from the sys_journal_field table.
How this can be achievable? can we show the table list view in the UI page like we can do in the service portal and delete specific entries from there ?
PLEASE HELP AND LET ME KNOW IF THERE IS ANY OTHER APPROACH THAT I CAN FOLLOW.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2020 01:45 PM
please follow below thread it would be more helpful
please mark as help full or mark as correct anaswer

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2020 02:58 PM
Hi
You can try this
You need change the code of iframe like below code getting Incident list based on Caller
<g:ui_reference name="requester_id" query="active=true" table="sys_user" id="requester_id" value="${gs.getUserID()}" displayvalue="${gs.getUser().getName()}"/>
<button class="button" style="margin-left:5px" id="getList" onclick="getIncList();">Get User Incidents</button>
<div id="targetList">
<iframe src="incident_list.do?sysparm_query=caller_id=javascript:gs.getUserID()" style="min-height:400px;width:100%;" scrolling="no" frameborder="0"></iframe>
</div>
<script>
function getIncList(){
var caller = document.getElementById('requester_id').value ;
var newIframe = '<iframe src="incident_list.do?sysparm_query=caller_id='+caller+'" style="min-height:400px;width:100%;" scrolling="no" frameborder="0"></iframe>' ;
document.getElementById('targetList').innerHTML =newIframe ;
}
</script>
Please mark my answer correct and helpful,I this helps you in any way.
Thanks in advance