UI Page Iframe Help

tejumes
Kilo Guru

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?

1 ACCEPTED SOLUTION

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


View solution in original post

13 REPLIES 13

Abhinay Erra
Giga Sage

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


find_real_file.png


list.PNG


Thanks,


Abhinay




Please mark Helpful, Like, or Correct depending on the impact of the response


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?


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


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.


find_real_file.png


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