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



Location Id Field Global VariableExpand / Collapse
Author
Message
Posted 10/05/2006 2:32:45 PM


StrataFrame User

StrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame User

Group: StrataFrame Users
Last Login: Today @ 2:01:30 PM
Posts: 372, Visits: 2,492
I'm stuck

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

Post #3333
Posted 10/05/2006 3:53:54 PM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: Today @ 6:26:12 PM
Posts: 4,901, Visits: 4,887
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.
Post #3343
Posted 10/09/2006 9:54:14 AM


StrataFrame User

StrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame User

Group: StrataFrame Users
Last Login: Today @ 2:01:30 PM
Posts: 372, Visits: 2,492
Thanks Trent that makes sense
Post #3397
« 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: Ben Chase, Trent L. Taylor, Steve L. Taylor

PermissionsExpand / Collapse

All times are GMT -6:00, Time now is 7:15pm

Powered by InstantForum.NET v4.1.4 © 2009
Execution: 0.062. 12 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.