StrataFrame Forum
Home      Members   Calendar   Who's On
Welcome Guest ( Login | Register )
      



Default Field PrefixExpand / Collapse
Author
Message
Posted 06/09/2009 12:24:36 PM


StrataFrame User

StrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame User

Group: StrataFrame Users
Last Login: 08/31/2010 7:23:04 PM
Posts: 436, Visits: 2,079
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.
Post #23435
Posted 06/09/2009 1:03:43 PM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: 08/31/2010 2:36:53 PM
Posts: 6,287, Visits: 6,191
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!
Post #23436
Posted 06/09/2009 4:56:10 PM


StrataFrame User

StrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame User

Group: StrataFrame Users
Last Login: 08/31/2010 7:23:04 PM
Posts: 436, Visits: 2,079
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.
Post #23442
« Prev Topic | Next Topic »


Reading This TopicExpand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: Trent L. Taylor, Steve L. Taylor, Dustin Taylor

PermissionsExpand / Collapse

All times are GMT -6:00, Time now is 8:41am

Powered by InstantForum.NET v4.1.4 © 2010
Execution: 0.047. 9 queries. Compression Enabled.
Site Map - Home - My Account - Forum - About Us - Contact Us - Try It - Buy It

Microsoft, Visual Studio, and the Visual Studio logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries.