How fill the Custom Property of an Business object from another table.


How fill the Custom Property of an Business object from another table....
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
A Business Object is binded to a DB Table. I want to extend my business objects with custom fields (Which are not based on the fields of the table). How these custom fields will be populated ?

I ll write a special fill method that queries from two or three tables with joined each other. I have the columns which includes my custom values (from DB).

What is the easiest way to transfer or populate this values to my custom properties of my Business Object ?

Greg McGuffey
Greg McGuffey
Strategic Support Team Member (3.4K reputation)
Group: Forum Members
Posts: 2K, Visits: 6.6K
You'd use custom field properties. See the "Adding Custom Field Properties" topic in the help file to see what is required (it's pretty easy). These allow your custom properties to be bound to controls, just like regular BO field properties. Note that to enable binding you need to create the property with the correct attributes AND include a field descriptor property. A good post on how to properly do this is:



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



In order to access the data that you are querying, you'd just access the appropriate row in the DataTable, by column name within the custom field properties.



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