StrataFrame Forum

Default Field Prefix

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

By Larry Caylor - 6/9/2009

I'd like to see the default field prefix in the table properties of the DDT carried over as a BO property. It would simplify some code I have in my custom base business object.
By Trent L. Taylor - 6/9/2009

Can you give me an example of how you would use this? It might make it easier to help implement some type of solution. Thanks! Smile
By Larry Caylor - 6/9/2009

Just about all of my business objects have a ModBy, AddBy, ModDate, and AddDate field preceeded by the table prefix. ModBy and AddBy are integers (SFSUser PK). I want to create my own object template that adds the code to update the fields when a new record is added or a record is modified. I aslo have some code that populates some custom fields; AddByName, ModByName. I thought that if I had the default prefix the code would be simplier. Right now I just loop through the field name collection looking for fields that contain "AddBy" or whatever I'm looking for to get the actual field name/property I want to work with.