Filter repeating table for date range or latest records

J

John S.

Hi All,

Can someone show me how to filter a repeating table with a date range (e.g
records added within the last 10 days) or the latest records (e.g. 5 latest
records). Any help would be greatly appreciated.

Thanks
 
S

Sandeep

Hi John S

Write this code in OnClick function.
This will give the records within the given date range.
This code is in C#..

string sQueryText = string.Empty;

string toid = getNodeValue("/dfs:myFields/my:Todate");
string fromid = getNodeValue("/dfs:myFields/my:Fromdate");


sQueryText = string.Format("select * from Table1 where name ='{0}' and date
between '{1}' ", toid, fromid);
ADOAdapter2 table1Adapter = (ADOAdapter2)
thisXDocument.DataAdapters["Table1"];
table1Adapter.Command = sQueryText;
table1Adapter.Query();


I hope this will help U
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top