- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-20-2016 08:20 PM
I have a iframe in the UI Page to bring the Incident list. How can i hide the nav header and breadcrumb in my iframe target list?
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-27-2016 07:19 AM
Teju,
I believe it should be jvar_ci_name instead of ci_name. Other than that everything looks good.
Thanks,
Abhinay
PS: Hit like, Helpful or Correct depending on the impact of the response

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-20-2016 08:57 PM
Tejus,
Bread crumbs are controlled by filter roles in list control. You can also use script to allow access to the filters. See the below snapshots to see how you can configure the filter roles
Thanks,
Abhinay
Please mark Helpful, Like, or Correct depending on the impact of the response
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-20-2016 09:20 PM
Thanks Abhinay, I have two questions here
1. In UI Page, I have a iframe to bring the list e.g.:
var newIframe = '<iframe src="cmdb_ci_list.do?sysparm_query=sys_updated_on>'+appName+'" style="min-height:400px;width:100%;" scrolling="yes" frameborder="0"></iframe>' ;
this brings all the columns in the cmdb_ci list i want to restrict some columns on it only name and manufacturer to be brought on the iframe list.
2. How can i add columns dynamically in the retrieved list?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-20-2016 09:25 PM
if i omit the filters this will have an effect to all , i need to disable the nav bar header and filter breadcrumbs only on the iframe

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-20-2016 09:51 PM
Teju,
You can create a view for your list, configure the list layout for that view and reference that in your iframe like this sysparm_view='your custom view name'
Then in the omit filter conditions, add something like this to hide the filters for only this view.
Script:
if (gs.getSession().isInteractive()) {
var map = gs.action.getGlideURI().getMap();
if (map.get('sysparm_view') != null) {
view_name= map.get('sysparm_view').toString();
if(view_name=='Major Incidents'){ //here put in your view name instead of Major Incidents
answer=true;
}
else{
answer=false;
}
}
}
Thanks,
Abhinay
Please mark Helpful, Like, or Correct depending on the impact of the response