StrataFrame Forum

FillDataTable affects Business Object property

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

By Ertan Deniz - 4/23/2008

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.

By Trent L. Taylor - 4/23/2008

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.
By Ertan Deniz - 4/23/2008

The case was strange. I will follow the case.

Thanks for quick reply.

By Ertan Deniz - 4/24/2008

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.