SharedDataTableKey - CurrentRow Index out of range
 
Home My Account Forum Try It! Buy It!
About Contact Us Site Map
StrataFrame Forum
Home      Members   Calendar   Who's On
Welcome Guest ( Login | Register )
      



SharedDataTableKey - CurrentRow Index out of...Expand / Collapse
Author
Message
Posted 05/29/2007 4:12:24 PM
StrataFrame User

StrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame User

Group: StrataFrame Users
Last Login: 06/25/2008 11:53:33 AM
Posts: 306, Visits: 1,216
I have two forms sharing the same business object and I'm using the SharedDataTableKey feature and set the SharedDataTableKeyShareRowIndex = True.

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.

I tried navigating to a specific row before opening my child form and it still happens.  Do I have to set something else?

Thanks

Tim

Post #9181
Posted 03/14/2008 12:29:02 PM
StrataFrame Novice

StrataFrame NoviceStrataFrame NoviceStrataFrame NoviceStrataFrame NoviceStrataFrame NoviceStrataFrame NoviceStrataFrame NoviceStrataFrame Novice

Group: StrataFrame Users
Last Login: 05/19/2008 11:49:13 AM
Posts: 64, Visits: 202
See post http://forum.strataframe.net/Topic14890-10-1.aspx
Post #14892
Posted 03/14/2008 1:18:01 PM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: Today @ 11:13:06 AM
Posts: 4,104, Visits: 4,176
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.

I tried navigating to a specific row before opening my child form and it still happens.  Do I have to set something else?

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.

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.

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.

Post #14897
« Prev Topic | Next Topic »


Reading This TopicExpand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: Ben Chase, Trent L. Taylor, Steve L. Taylor

PermissionsExpand / Collapse

All times are GMT -6:00, Time now is 6:00pm

Powered By InstantForum.NET v4.1.4 © 2008
Execution: 0.125. 10 queries. Compression Enabled.
Site Map - Home - My Account - Forum - About Us - Contact Us - Try It - Buy It

Microsoft, Visual Studio, and the Visual Studio logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries.