﻿<?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 » Issues  » Problems with SharedDataTableKey</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 02:04:28 GMT</lastBuildDate><ttl>20</ttl><item><title>Problems with SharedDataTableKey</title><link>http://forum.strataframe.net/FindPost14890.aspx</link><description>I'm pretty sure that I have isolated a problem with the shared data table key and I have a secondary problem on how the filter is handled.&amp;nbsp;&amp;nbsp; I'll see if I can explain.&amp;nbsp;&amp;nbsp; If you create a BO and specify a SDTK( Shared Data table Key ) then the first time that the BO is instantiated and filled everything is fine.&amp;nbsp;&amp;nbsp; But for some reason if there is a Object or Form that Dispose of the last instance of that class then the SDTK is now a bug and upon the first new instance of the Same BO type then the DataRow Index will be all messed up.&amp;nbsp;&amp;nbsp; It looks like the Finalize of the BO does not removed the SDTK from it's collection for SDTK keys.&amp;nbsp;&amp;nbsp; I'm pretty sure that this bug is the reason for a couple of the SDTK posts.&lt;/P&gt;&lt;P&gt;Second problem with SDTK.&amp;nbsp; Filters.&amp;nbsp;&amp;nbsp; If you are using 2 BO that are bound with a SDTK and you filter one of them the second is filtered.&amp;nbsp; Is there a reason for this?&amp;nbsp; For my thought process is for lookups that rarely get update or automatically notified if DB changes then having a BO with a SDTK would work well and does.&amp;nbsp; Up until one of those BO's are filtered for some reason and then All of the BO's are filtered.&amp;nbsp;&amp;nbsp; This obviously messes up a bunch of things.&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;Richard</description><pubDate>Fri, 14 Mar 2008 14:25:23 GMT</pubDate><dc:creator>Richard Keller</dc:creator></item><item><title>RE: Problems with SharedDataTableKey</title><link>http://forum.strataframe.net/FindPost14911.aspx</link><description>Gotcha.&amp;nbsp; Sounds good.&amp;nbsp; &lt;/P&gt;&lt;P&gt;I agree with your methodology, but like you mentioned towards the end of your last post, I would probably create a static or shared class that does this for me and then allows me to pass over a BO for population.&amp;nbsp; You can definitely use the shared data table in this scenario as well.</description><pubDate>Fri, 14 Mar 2008 14:25:23 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Problems with SharedDataTableKey</title><link>http://forum.strataframe.net/FindPost14907.aspx</link><description>I'll recreate and post a sample for the bug.&lt;/P&gt;&lt;P&gt;I'm full aware of the use of filters and when to use.&amp;nbsp;&amp;nbsp; All of my applications are in the millions of records and thousands of transactions an hour.&amp;nbsp; For large datasets and heavy transacted tables it would be almost always be primary key usage only.&lt;/P&gt;&lt;P&gt;I'm using the filters on Dual Lookup Tables and Settings that are mostly static.&amp;nbsp;&amp;nbsp;For an example I have Shipper BO and the children ShipperMethods and ShipperWarehouse.&amp;nbsp;&amp;nbsp; So when you select a Shipper you filter the results of the ShipperMethods.&amp;nbsp;&amp;nbsp; This is done for drop down display as well as settings.&amp;nbsp; These three BO's are used throughout the Shipping Module and contain less the 100 rows total on average.&amp;nbsp;Preferably I simply just wanted to load them once for the entire application instead of loading and reloading all the time.&amp;nbsp;&amp;nbsp; In this type of instance I want to share the data but not the view.&amp;nbsp;&amp;nbsp; I guess I can build a caching system that simply copies data from BO to BO or look into the source and see what it takes to add a IsFilterEnabled Property.&lt;/P&gt;&lt;P&gt;Richard</description><pubDate>Fri, 14 Mar 2008 14:03:58 GMT</pubDate><dc:creator>Richard Keller</dc:creator></item><item><title>RE: Problems with SharedDataTableKey</title><link>http://forum.strataframe.net/FindPost14895.aspx</link><description>[quote]I'm pretty sure that this bug is the reason for a couple of the SDTK posts.[/quote]&lt;/P&gt;&lt;P&gt;The best thing I could recommend here is to create a small sample that reproduces the issue you are describing versus going back and forth and we will take a look at it.&lt;/P&gt;&lt;P&gt;[quote]Second problem with SDTK.&amp;nbsp; Filters.&amp;nbsp;&amp;nbsp; If you are using 2 BO that are bound with a SDTK and you filter one of them the second is filtered.&amp;nbsp; Is there a reason for this?&amp;nbsp;[/quote]&lt;/P&gt;&lt;P&gt;This is correct and by design.&amp;nbsp; From the sound of it you may be overusing the shared data table.&amp;nbsp; The shared data table is the internal data of the BO...this includes the DefaultView attached to that shared data table which is shared as well.&amp;nbsp; Secondly, and I know that you have probably read this on other posts, but if you find yourself using a filter a lot, then you probably should be restructuring some of your code because this generally indicates that you are bringing back more data to the client side that may be necessary.&amp;nbsp; Just a recommendation.&amp;nbsp; This is something that we will cover in class and is something that I have been having a lot of conversations about lately.&amp;nbsp; Filters are great when using under cetain conditions...and in moderation.&amp;nbsp; But if this is a common design of your application you are in for a lot of frustrations and the larger the application grows (or the more data added from a larger client) the more problems you will encounter.</description><pubDate>Fri, 14 Mar 2008 13:11:49 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item></channel></rss>