Limit list by XPath source in data grid

0
Hi,   I want to retrieve data by XPath in datagrid and have to retrieve only two records from the database in a sorted manner. How can I do that?   Thanks and Regards, Harshraj Singh
asked
2 answers
6

Hi Harshraj,

  1. Have microflow DS
  1. Retrieve data with XPath with sort with offset as ‘0’ limit as ‘2’
  2. set that as return value

 

Thanks.

answered
2

Hi Harshraj,

 

If you want to show only two records, Then use a Database or Xpath constraint or Datasource Microflow option that is provided in Datagrid widget.

Xpath:

 

Datasource Microflow:

Make sure that, when you retrieve the data always use an unique attribute to avoid getting duplicated data.

 

Hope this helps you!

 

Regards,

Yasar

answered