Follow us: Connect on YouTube Connect on YouTube Connect on YouTube

Pages

Sunday, 17 September 2017

Sort Data in BI/XML Publisher Reports




You can sort data in XML report a group by any element within the group.

Sort data based on Empno:


Syntax: 


<?sort:Field_Name?><?Field_Name?>

It sorts the data in ascending order by Default. If Order By is not mentioned

Example: 

<?sort:EMPNO?><?EMPNO?>

Sort data in xml reports

 Output:




Sort data as descending based on Empno:


Syntax: 
<?sort:Field_Name;'descending'?><?Field_Name?>

Example: 
<?sort:EMPNO;'descending'?><?EMPNO?>
 


Sort data as descending

 Sort data based on Ename Test Element:


Syntax:

<?sort:Field_Name;’Order by’;data-type=’text’?>

It sorts the String Data based on Order By mentioned here like Ascending Or Descending

Example: 
<?sort:ENAME;’ascending‘;data-type=’text’?><?ENAME?>



Share this article :

2 comments:

  1. Oracle Apps R12 and Oracle Fusion Cloud Self Paced Online Training Videos Published on Udemy with Life Time Access & Live Meeting Support to Clear your Queries. Avail 25% to 80% discount. Please Check https://www.oracleappstechnical.com for Never Before Offers and Discount Coupon Codes.

    ReplyDelete
  2. How do you sort by more than 1 column, by Mgr and Sal, for example?

    ReplyDelete