﻿<?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?)  » SharedDataTableKey - CurrentRow Index out of range</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Sun, 05 Apr 2026 16:33:34 GMT</lastBuildDate><ttl>20</ttl><item><title>SharedDataTableKey - CurrentRow Index out of range</title><link>http://forum.strataframe.net/FindPost9181.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.&amp;nbsp; Do I have to set something else?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Tim</description><pubDate>Fri, 14 Mar 2008 13:18:01 GMT</pubDate><dc:creator>Tim Dol</dc:creator></item><item><title>RE: SharedDataTableKey - CurrentRow Index out of range</title><link>http://forum.strataframe.net/FindPost14897.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.&amp;nbsp; 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.&amp;nbsp; The reason that this could happen is that a filter or sort may be applied or a binding related issue.&amp;nbsp; 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.&amp;nbsp; Richard pointed to another post that he placed, and I asked him for a sample and gave some additional explanation.&amp;nbsp; 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&amp;nbsp;shared data table is a great feature, but should not be use everywhere.&amp;nbsp; 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).&amp;nbsp; 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/FindPost14892.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></channel></rss>