Ankur Bawiskar
Tera Patron

Hi Sudhir,



As part of example following is the code.


It queries incident table with priority and has 3 columns and shows data for those records as table rows.



Obviously you can add css style etc for the table but the basic purpose is solved.



UI Page



HTML Section:



<?xml version="1.0" encoding="utf-8" ?>


<j:jelly trim="false" xmlns:j="jelly:core" xmlns:g="glide" xmlns:j2="null" xmlns:g2="null">



      <html>


      <g:evaluate object="true">


              var inc = new GlideRecord('incident');


              inc.addQuery('priority',5);


              inc.query();


              inc;


      </g:evaluate>      


             


              <table border="1">


              <tr>


      <td>Number</td>


      <td>Short Description</td>


      <td>Category</td>


  </tr>


                     


              <j:while test="${inc.next()}">


                      <tr>


                              <td>${inc.number}</td>


                              <td>${inc.short_description}</td>


                              <td>${inc.category}</td>


                              </tr>


</j:while>      


              </table>      


      </html>      


</j:jelly>



screenshot below:



ui page.JPG



Mark Correct if this solves your issue and also hit Like and Helpful if you find my response worthy based on the impact.


Thanks


Ankur


Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader