BBS and multiple instances of the business Object


Author
Message
Ertan Deniz
Ertan Deniz
StrataFrame User (207 reputation)StrataFrame User (207 reputation)StrataFrame User (207 reputation)StrataFrame User (207 reputation)StrataFrame User (207 reputation)StrataFrame User (207 reputation)StrataFrame User (207 reputation)StrataFrame User (207 reputation)StrataFrame User (207 reputation)
Group: Forum Members
Posts: 163, Visits: 493
Business Object's constructor is fired X number of times when it is bound to grid with BBS. I have a BusinessObjectBase class which is base class for all BusinessObjects and implemented initialization (method) logic inside it and every Business Object has an overriden initialization method. Now, both of them are executed many times. But They must be executed only once.

How should I handle this situation ? What is the best practice ?

Replies
Ertan Deniz
Ertan Deniz
StrataFrame User (207 reputation)StrataFrame User (207 reputation)StrataFrame User (207 reputation)StrataFrame User (207 reputation)StrataFrame User (207 reputation)StrataFrame User (207 reputation)StrataFrame User (207 reputation)StrataFrame User (207 reputation)StrataFrame User (207 reputation)
Group: Forum Members
Posts: 163, Visits: 493
Thanks. I think, This is the only way to follow.

Do you compare BBS and native binding source component / DataTable binding? Does BBS work well ? Is there a performance issues ?

Trent Taylor
Trent Taylor
StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K

Do you compare BBS and native binding source component / DataTable binding? Does BBS work well ? Is there a performance issues ?

The performance should not be an issue whatsoever.  This is something that is commonly done (including ourselves).  The BBS i something that continues to grow and is what we use exclusively for reporting and grids.  So you wil be in good shape Wink

Ertan Deniz
Ertan Deniz
StrataFrame User (207 reputation)StrataFrame User (207 reputation)StrataFrame User (207 reputation)StrataFrame User (207 reputation)StrataFrame User (207 reputation)StrataFrame User (207 reputation)StrataFrame User (207 reputation)StrataFrame User (207 reputation)StrataFrame User (207 reputation)
Group: Forum Members
Posts: 163, Visits: 493
I've tried to develop a solution to init logic that fires more than once. I've defined a dictionary to store the business objects that are entering query mode (FillDataTable). I've tested the the object that it was in query mode.

After query, I've deleted the business object from the dictionary. BBS starts to ctruct the business object list. Since I've deleted the object from the dictionary, I Couldn't test the condition and my init logic runs many times.

Could I get your solution ? "Shared property or dictionary based solution".

Firstly, Constructor fires for the business object itself. After BBS starts and fired many times the same constructor ? How can I understand from where constructor is called ? (i.e BBS calls the constrctor ?) 

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