FillDataTable affects Business Object property


Author
Message
Ertan Deniz
Ertan Deniz
StrataFrame User (179 reputation)StrataFrame User (179 reputation)StrataFrame User (179 reputation)StrataFrame User (179 reputation)StrataFrame User (179 reputation)StrataFrame User (179 reputation)StrataFrame User (179 reputation)StrataFrame User (179 reputation)StrataFrame User (179 reputation)
Group: Forum Members
Posts: 163, Visits: 493
In my case,

A Business Object, for example, Group has a property for another Business Object (Company).

I'm accessing as Group.Company. (Property get section initializes and fill the Company object with some rules.)

But I've noticed that, When Group.FillDataTable was executed, Group.Company was also accessed. (In Debug mode, I've not caught this.) Company object was initalized and filled.

This was unexpected condition. Prior to my call as Group.Company, internally it has been done.

I need help.

Thanks.

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 say that the property is being accessed through a FillDataTable, but the FillDataTable will not touch any of the properties and the only time a property is EVER touched is going to be when it is directly accessed...or bound.  If you have a dialog that is bound to this property, or properties within the exposed BO, then the bindings will be refreshed when navigated or the dta table is refilled, that would be the only time it would be accessed.
Ertan Deniz
Ertan Deniz
StrataFrame User (179 reputation)StrataFrame User (179 reputation)StrataFrame User (179 reputation)StrataFrame User (179 reputation)StrataFrame User (179 reputation)StrataFrame User (179 reputation)StrataFrame User (179 reputation)StrataFrame User (179 reputation)StrataFrame User (179 reputation)
Group: Forum Members
Posts: 163, Visits: 493
The case was strange. I will follow the case.

Thanks for quick reply.

Ertan Deniz
Ertan Deniz
StrataFrame User (179 reputation)StrataFrame User (179 reputation)StrataFrame User (179 reputation)StrataFrame User (179 reputation)StrataFrame User (179 reputation)StrataFrame User (179 reputation)StrataFrame User (179 reputation)StrataFrame User (179 reputation)StrataFrame User (179 reputation)
Group: Forum Members
Posts: 163, Visits: 493
I've found why this has happened.

In debugging, When we look at the object's properties we see the values. At this time, All of the get parts are executed internally.  

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