"Shared Data Table" question


Author
Message
Ben Hayat
Ben Hayat
Advanced StrataFrame User (568 reputation)Advanced StrataFrame User (568 reputation)Advanced StrataFrame User (568 reputation)Advanced StrataFrame User (568 reputation)Advanced StrataFrame User (568 reputation)Advanced StrataFrame User (568 reputation)Advanced StrataFrame User (568 reputation)Advanced StrataFrame User (568 reputation)Advanced StrataFrame User (568 reputation)
Group: Forum Members
Posts: 374, Visits: 1.2K
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!

..ßen
Trent Taylor
Trent Taylor
StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
"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.

Ben Hayat
Ben Hayat
Advanced StrataFrame User (568 reputation)Advanced StrataFrame User (568 reputation)Advanced StrataFrame User (568 reputation)Advanced StrataFrame User (568 reputation)Advanced StrataFrame User (568 reputation)Advanced StrataFrame User (568 reputation)Advanced StrataFrame User (568 reputation)Advanced StrataFrame User (568 reputation)Advanced StrataFrame User (568 reputation)
Group: Forum Members
Posts: 374, Visits: 1.2K
Any BO which has the same SharedDataTableKey will have the same data within the BO.




Sweet!



Thank you for speedy response!

..ßen
Trent Taylor
Trent Taylor
StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
No problem Smile
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search