Location Id Field Global Variable


Author
Message
Paul Chase
Paul Chase
Advanced StrataFrame User (806 reputation)Advanced StrataFrame User (806 reputation)Advanced StrataFrame User (806 reputation)Advanced StrataFrame User (806 reputation)Advanced StrataFrame User (806 reputation)Advanced StrataFrame User (806 reputation)Advanced StrataFrame User (806 reputation)Advanced StrataFrame User (806 reputation)Advanced StrataFrame User (806 reputation)
Group: Forum Members
Posts: 414, Visits: 2.8K
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

Trent Taylor
Trent Taylor
StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 7K
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.
Paul Chase
Paul Chase
Advanced StrataFrame User (806 reputation)Advanced StrataFrame User (806 reputation)Advanced StrataFrame User (806 reputation)Advanced StrataFrame User (806 reputation)Advanced StrataFrame User (806 reputation)Advanced StrataFrame User (806 reputation)Advanced StrataFrame User (806 reputation)Advanced StrataFrame User (806 reputation)Advanced StrataFrame User (806 reputation)
Group: Forum Members
Posts: 414, Visits: 2.8K
Thanks Trent that makes sense
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