﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum » StrataFrame Application Framework - V1 » Business Objects and Data Access (How do I?)  » How do I trap for no records found?</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Tue, 09 Jun 2026 16:02:27 GMT</lastBuildDate><ttl>20</ttl><item><title>How do I trap for no records found?</title><link>http://forum.strataframe.net/FindPost2496.aspx</link><description>If I attempt to fill a BO and the critera I used returns zero records.... how do I handle that gracefully?  Right now I get an error: "Cannont convert "" to integer".&lt;br&gt;
&lt;br&gt;
Thanks</description><pubDate>Tue, 29 Aug 2006 10:54:34 GMT</pubDate><dc:creator>StarkMike</dc:creator></item><item><title>RE: How do I trap for no records found?</title><link>http://forum.strataframe.net/FindPost2521.aspx</link><description>All you need to do is attempt to populate before you call the Requery method of the ListView.&amp;nbsp; This way the ListPopulating event will never even be called and the list will not attempt to re-populate.&amp;nbsp; One thing that you will probably want to do is set the PopulateOnFormLoad to manual which means the list will not populate unless you call the Requery method of the ListVIew.</description><pubDate>Tue, 29 Aug 2006 10:54:34 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: How do I trap for no records found?</title><link>http://forum.strataframe.net/FindPost2517.aspx</link><description>Is there a way I can cancel the ListPopulating event if my primary business object returned zero rows?</description><pubDate>Tue, 29 Aug 2006 07:46:08 GMT</pubDate><dc:creator>StarkMike</dc:creator></item><item><title>RE: How do I trap for no records found?</title><link>http://forum.strataframe.net/FindPost2515.aspx</link><description>Let me know if you have any questions.&amp;nbsp; We may not have 2 minute responses since we are out of town, but we are keeping on top of the forum :)</description><pubDate>Mon, 28 Aug 2006 20:32:41 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: How do I trap for no records found?</title><link>http://forum.strataframe.net/FindPost2513.aspx</link><description>I'm filling the busines object using Me.FillDataTable(cmd). I'll check it out in the morning. Thanks</description><pubDate>Mon, 28 Aug 2006 20:29:25 GMT</pubDate><dc:creator>StarkMike</dc:creator></item><item><title>RE: How do I trap for no records found?</title><link>http://forum.strataframe.net/FindPost2503.aspx</link><description>It depends on how you are filling the business object.&amp;nbsp; All binding logic already takes this into account so basic StrataFrame binding will not generate this error since we remove the binding when there are no records.&amp;nbsp; But you can use teh CurrentDataTableRefilled method and then look at the Count property of the BO.</description><pubDate>Mon, 28 Aug 2006 17:34:30 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item></channel></rss>