StrataFrame Forum

"Shared Data Table" question

http://forum.strataframe.net/Topic9716.aspx

By Ben Hayat - 6/21/2007

I was reading about Shared table in the help and couple question came to mind based on the following statement:

Keep in mind that only the internal data table is shared. Any business object referencing this shared table is still a unique instance.




a) "Only the internal data table is shared". Does this mean the "Contents/Filled/filtered" data is shared?



b) "Any business object referencing this shared table is still a unique instance". Does this mean each instance of the BO has it's own data?



If I create a BO in the main form and put one record in it and assign a shared key to this BO and then in my other forms, I create new instances of this BO and set their shared key to the same key, will each one of these instances see the same record that was put in the mainform?



Thank you!
By Trent L. Taylor - 6/21/2007

"Only the internal data table is shared". Does this mean the "Contents/Filled/filtered" data is shared?

Yes.  The DefaultView of the data table is what makes the "fitler" happen.  As for the contents and the filled data, yes as well.

"Any business object referencing this shared table is still a unique instance". Does this mean each instance of the BO has it's own data?

No.  It means that if you call the navigate on one BO it will not affect any other BO using the same shared data table.  This is when you will want to use a ChildFormDialog or a BOTranslation as the handlers and everything are translated between two or more sessions.

, will each one of these instances see the same record that was put in the mainform?

Any BO which has the same SharedDataTableKey will have the same data within the BO.

By Ben Hayat - 6/21/2007

Any BO which has the same SharedDataTableKey will have the same data within the BO.




Sweet!



Thank you for speedy response!
By Trent L. Taylor - 6/21/2007

No problem Smile