Skip to main content

Hello Everyone,

I try to get some data using pagination and a specific order by, but it seems that the mention of the order by element doesn’t have any effect. The results will be always ordered by primary key ascending. If i remove the fields starting_row_number="0" ending_row_number="15" the order by works correctly.

I am missing something, or its not possible to have pagination with another order by except ascending by primary key ?
 

This is the XML used:


<hierarchy_select starting_row_number="0" ending_row_number="15">
<primary_table>request</primary_table>
<from>
<table>request</table>
</from>
<attrs>
<attr>request.request_id</attr>
<attr>request.created_by</attr>
<attr>request.created_dttm</attr>
<attr>request.cust_prob_descr</attr>
<attr>request.req_type</attr>
</attrs>
<order_by>
<desc>request.created_dttm</desc>
</order_by>
</hierarchy_select>

 

Kindly help me to do it if it is possible.

 

Thank you,

Constantin

Hi @Constantin Mav ,

 

have you tried using max_rows=”=number]”, instead of starting/ending_rrow_number?

 

<hierarchy_select max_rows="15">

 

~Juni


Hi @JuniSihombing ,

The max_rows=”number]” is not good in the situation where I want to display a second page of records (so I will want to skip the first 15 for example, and then display the next 15).

 

~ Constantin