<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.aras.com/community/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Federation - Item count</title><link>https://www.aras.com/community/f/development/3307/federation---item-count</link><description>Hello,

I&amp;#39;ve created a federated ItemType to pull in data from an ODBC data source and it seems to be working great apart from one thing: When running a search the status bar at the bottom reports &amp;#39;0 items found&amp;#39;, and consequently you can&amp;#39;t page through</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Federation - Item count</title><link>https://www.aras.com/community/thread/587?ContentTypeID=1</link><pubDate>Fri, 07 Jul 2017 11:02:47 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:490edc11-4cad-4ab4-8f3d-bd9f74684182</guid><dc:creator>benjamin.brooking</dc:creator><description>Thanks, that&amp;#39;s much better.

In the interest of efficiency I was trying to keep it so that my queries to my external database were only for the page of results being requested by the user.

Based on this method I assume that I need to return all 6000-odd (or found subset) records in my database for the paging to work?

Is there no way to report back the total records and current range without returning the actual data too?

Many thanks,

Ben&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Federation - Item count</title><link>https://www.aras.com/community/thread/555?ContentTypeID=1</link><pubDate>Thu, 29 Jun 2017 05:28:33 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:84dc3583-3738-4efc-9479-58037cd18b14</guid><dc:creator>Former Member</dc:creator><description>HI,

You can try it.

Server Event ：OnGet

&amp;nbsp;

Innovator innovator = this.getInnovator();
ArasTool aras = new ArasTool(innovator);
string queryString = &amp;quot;select cname from customer&amp;quot;;
string dbConn = &amp;quot;XXX&amp;quot;;
Item res5 = null;
Item res = this.getInnovator().newResult(&amp;quot;&amp;quot;);
try
{

XmlElement resultNd = (XmlElement) res.dom.SelectSingleNode(&amp;quot;/*/*/*&amp;quot;);
DataTable dt = aras.getDataTable(dbConn,queryString);

foreach (DataRow dr in dt.Rows){
res5 = this.newItem(&amp;quot;customer&amp;quot;);
string newid = getNewID();
res5.setID(newid);
res5 = res5.apply();
res5.setProperty(&amp;quot;_cname&amp;quot;,dr["cname"].ToString());

resultNd.AppendChild(resultNd.OwnerDocument.ImportNode(res5.node, true));
}
} catch (Exception ex) {
CCO.Utilities.WriteDebug(&amp;quot;DebugFile&amp;quot;,ex.ToString());
}
return res;

&amp;nbsp;

&amp;nbsp;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>