StrataFrame Forum

Location Id Field Global Variable

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

By Paul Chase - 10/5/2006

I'm stuck Smile

I have a field that is in most tables that is a branch office Id.

I have a subclassed Bo that all my application bo's inherit from.

Rather that set this in every bo's default values I would like to this a bit smarter and have added 2 property's to the base bo.

PopulateOfficeid (Boolean)

OfficeIdField (string)

Now in the override for default values I need to be able to retrieve a value from somewhere to populate the id field. This is where I am stuck. The Office Id comes and office profile table that is loaded at application startup. Because the subclasses are in a separate project they know nothing about what is going on in the main application.

Hopefully I explained it well enough.

Any ideas you guys have would be great

Paul

By Trent L. Taylor - 10/5/2006

Well, the easiest thing would be to have the business objects or methods that are needed in both places to reference a common assembly which houses the OfficeID method or BO.  For example, you may want to create a Base Business Objects library which both assemblies reference.
By Paul Chase - 10/9/2006

Thanks Trent that makes sense