DataRepeater & BusinessObjects


Author
Message
Crones
Crones
StrataFrame Beginner (43 reputation)StrataFrame Beginner (43 reputation)StrataFrame Beginner (43 reputation)StrataFrame Beginner (43 reputation)StrataFrame Beginner (43 reputation)StrataFrame Beginner (43 reputation)StrataFrame Beginner (43 reputation)StrataFrame Beginner (43 reputation)StrataFrame Beginner (43 reputation)
Group: Forum Members
Posts: 35, Visits: 345
I am attempting to utilize the Visual Basic PowerPack 3 DataRepeater control and need a little help.



On my form, I have my primary BO and a BusinessBindingSource on the form and attached to the primary BO.



The DataRepeater will only accept the BBS as a data source. This in itself isn't necessarily a problem, however, I have a couple of custom user controls that have been created that only bind using a BO. So what ends up happening is the user control will either show NO data (in a few instances) or only the first record's values in all rows. Is there anybody here that can help shed some light as to how to implement a DataRepeater using the StrataFrame BO's?

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
Well, you are dealing with 2 types of data binding...so as such, you will need to be consistent if you want to use this type of logic for the easiest implementation.  When you use a BBS, there is no "CurrentRowIndex" so to speak.  It is managed within the BBS, but if you have custom controls using the IBusinssBindable interface, you will need to see at what point you are having an issue.

As soon as you set the BusinessObject property of a BBS, any bound control will automatically be forced back to the first record in the BO.  Secondly, if you are using BO translations through a user control or any other mechanism, this too can become a problem as the object instance within the DataRepeater may not be refreshed since it is not going to be handled through the translation.  So in this instance, you would want to refresh that instance with the translated object after the OnLoad of the control.

This is a very sticky and complicated thing to address on a post like this.  Data binding can be a somewhat complicated thing when you have a lot of things in the mix.  So I am just throwing out a few ideas here versus trying to resolve your problem as I really don't know what your problem would be without getting my head into your code and logic.

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