﻿<?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?)  » Design Time problem with Complex Business Object</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Sat, 16 May 2026 04:12:33 GMT</lastBuildDate><ttl>20</ttl><item><title>Design Time problem with Complex Business Object</title><link>http://forum.strataframe.net/FindPost15311.aspx</link><description>I have an complex Business Object called Companies with a property called rGroups. "rGroups" is also a business object. When I dropped complex Business Object on the form , I 've got the error msg in attached file.</description><pubDate>Thu, 03 Apr 2008 01:26:50 GMT</pubDate><dc:creator>Ertan Deniz</dc:creator></item><item><title>RE: Design Time problem with Complex Business Object</title><link>http://forum.strataframe.net/FindPost15360.aspx</link><description>Thanks.&lt;/P&gt;&lt;P&gt;I've checked DesignMode and null value.</description><pubDate>Thu, 03 Apr 2008 01:26:50 GMT</pubDate><dc:creator>Ertan Deniz</dc:creator></item><item><title>RE: Design Time problem with Complex Business Object</title><link>http://forum.strataframe.net/FindPost15320.aspx</link><description>You need to probably test whether you are in design mode or not.&amp;nbsp; Also, you need to ensure that this object is created prior to be evaluated.&amp;nbsp; First, to determine if you are in design mode or not, use the Me.DesignMode property:&lt;/P&gt;&lt;P&gt;[codesnippet]If Not Me.DesignMode Then&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; '-- Place your logic here&lt;BR&gt;End If[/codesnippet]&lt;/P&gt;&lt;P&gt;Secondly you have something that evaluating the property probably before it has been created.&amp;nbsp; This is not a complex property by any means, it&amp;nbsp;is just a simple property exposing another BO.&amp;nbsp; So be sure that it has been set to a value prior to evaluation and do not let it be evauluated (at least the internal properties) at design-time if an object has not been set.</description><pubDate>Wed, 02 Apr 2008 09:18:30 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Design Time problem with Complex Business Object</title><link>http://forum.strataframe.net/FindPost15315.aspx</link><description>I assumed that you have added the custom property to your BO to handle your needs, then that code may be the one triggering the error when the BO is dropped on the form.&amp;nbsp; If that is the case could you please post the code you added to your BO to help us out identifying this situation?</description><pubDate>Wed, 02 Apr 2008 08:31:01 GMT</pubDate><dc:creator>Edhy Rijo</dc:creator></item><item><title>RE: Design Time problem with Complex Business Object</title><link>http://forum.strataframe.net/FindPost15313.aspx</link><description>I've got the error at the design time.</description><pubDate>Wed, 02 Apr 2008 08:16:24 GMT</pubDate><dc:creator>Ertan Deniz</dc:creator></item><item><title>RE: Design Time problem with Complex Business Object</title><link>http://forum.strataframe.net/FindPost15312.aspx</link><description>Hi Ertan,&lt;/P&gt;&lt;P&gt;Based on your error, the rGroups BO is doing something that requires the CurrentRow to exist, since that is not the case "CurrentRowIndex: -1" then you get the exception.&lt;/P&gt;&lt;P&gt;Put some validation in your code to check for the BO.Count &amp;gt; 0 to avoid this kind of error.</description><pubDate>Wed, 02 Apr 2008 08:02:51 GMT</pubDate><dc:creator>Edhy Rijo</dc:creator></item></channel></rss>