List view in UI page

malu
Tera Contributor

Is it possible to bring up the list view in UI page.

eg: we have a baseline module , after creating a new baseline we can see the list of entries for a specific condition as shown below is it possisble to bring up these list (CMDB Baseline Entries) into an UI page ?

find_real_file.png

1 ACCEPTED SOLUTION

Hi Malu,



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>


View solution in original post

22 REPLIES 22

malu
Tera Contributor

Thanks so much Grupreet, Let me try this one.


malu
Tera Contributor

Hi Gurpreet, I tried to change the code as per cmdb formatter it is not working to pick up the activity , it is difficult for me newbie to get on. so i opened a new post for this https://community.servicenow.com/message/946048#946048


malu
Tera Contributor

Any help on this Gurpreet.


Activity Formatter Help