﻿<?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 / Business Objects and Data Access (How do I?)  / SharedDataTableKey - CurrentRow Index out of range / Latest Posts</title><generator>InstantForum.NET v4.1.4</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>forum@strataframe.net</webMaster><lastBuildDate>Sun, 07 Sep 2008 09:49:43 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: SharedDataTableKey - CurrentRow Index out of range</title><link>http://forum.strataframe.net/Topic9181-6-1.aspx</link><description>[quote]In general everything work fine however when I try to access one of the fields on my business object, Example MyBO.RecID... I get an error CurrentRow Index out of range.&lt;P&gt;I tried navigating to a specific row before opening my child form and it still happens.  Do I have to set something else?[/quote]&lt;/P&gt;&lt;P&gt;I could see this happening in a multitude of circumstances when using a shared data table and allowing the index to be moved as well.  The reason that this could happen is that a filter or sort may be applied or a binding related issue.  If you are using a shared data table accross multiple BOs that allow that record to be modified on two different forms, then I would rethink this logic.  Richard pointed to another post that he placed, and I asked him for a sample and gave some additional explanation.  You are welcome to shoot me a simple sample reproducing the issue as well since his may be a different scenario.&lt;/P&gt;&lt;P&gt;The shared data table is a great feature, but should not be use everywhere.  If you have a BO on a maintnenace for maintaining a record, I would lean away from allowing that BO to use a shared data table if at the same time you are going to be allowing that same data table to be manipulated by another dialog or BO.&lt;/P&gt;&lt;P&gt;The shared data table is a great way to have a cache that is commonly referenced, but this is not a wholesale solution for every BO (which I don't think that you are using).  Just some comments I thought I would add for those using the shared data table on a lot of BOs.</description><pubDate>Fri, 14 Mar 2008 13:18:01 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: SharedDataTableKey - CurrentRow Index out of range</title><link>http://forum.strataframe.net/Topic9181-6-1.aspx</link><description>See post &lt;A href="http://forum.strataframe.net/Topic14890-10-1.aspx"&gt;http://forum.strataframe.net/Topic14890-10-1.aspx&lt;/A&gt;</description><pubDate>Fri, 14 Mar 2008 12:29:02 GMT</pubDate><dc:creator>Richard Keller</dc:creator></item><item><title>SharedDataTableKey - CurrentRow Index out of range</title><link>http://forum.strataframe.net/Topic9181-6-1.aspx</link><description>I have two forms sharing the same business object and I'm using the SharedDataTableKey feature and set the SharedDataTableKeyShareRowIndex = True.&lt;/P&gt;&lt;P&gt;In general everything work fine however when I try to access one of the fields on my business object, Example MyBO.RecID... I get an error CurrentRow Index out of range.&lt;/P&gt;&lt;P&gt;I tried navigating to a specific row before opening my child form and it still happens.  Do I have to set something else?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Tim</description><pubDate>Tue, 29 May 2007 16:12:24 GMT</pubDate><dc:creator>Tim Dol</dc:creator></item></channel></rss>