How Display a table list View In UI Page.

keshav77
Tera Contributor

Hi All,

 

I have a requirement  where I have to show all the incident list view in ui page which having  the selected configuration item from catalog variable.

PLEASE HELP AND LET ME KNOW IF THERE IS ANY OTHER APPROACH THAT I CAN FOLLOW. 

 

<j:jelly xmlns:j="jelly:core" xmlns:g="glide">
  <html>
    <head>
      <title>Incident List for CI</title>
    </head>
    <body>
      <h2>Incidents for selected Configuration Item</h2>

      <script>
        var ciId = "${RP.getParameterValue('sysparm_ci')}";
        alert('keshav testing here');
        alert("DEBUG: sysparm_ci received in UI Page = " + ciId);
        alert('keshav testing here');

        if (!ciId) {
          alert("WARNING: sysparm_ci is empty. Can't show incidents.");
        }
      </script>

      <div id="incidentIframeContainer">
        <iframe
          src="incident_list.do?sysparm_query=cmdb_ci=${RP.getParameterValue('sysparm_ci')}"
          style="width:100%; height:500px; border:none;"
          scrolling="auto"
          frameborder="0">
        </iframe>
      </div>

    </body>
  </html>
</j:jelly>
2 REPLIES 2

KrishnaMohan
Giga Sage

Hi @keshav77  From catalog variable where you have to render the incident list in catalog form in portal or classic view?

 

Regards,
Krishnamohan.

M Iftikhar
Mega Sage

Hi @keshav77  ,
Your <iframe> approach will work for displaying the native list view. However, for a more modern and flexible solution, it’s best practice to use a Service Portal Widget or a UI Page with a GlideRecord query. These options give you full control over the UI, avoid iframes, and provide a cleaner user experience.

Thanks & Regards,
Muhammad Iftikhar
If my response helped, please mark it as the accepted solution so others can benefit as well.