Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to pass value of parameters from UI to BIZ to DA
Message
From
19/01/2008 18:16:28
 
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01283283
Message ID:
01283326
Views:
15
UI should have no concept of tablename. It should not know where the data is coming from. It should make a request to get a record by customer number, where it passes just the customer number or all customers in a certain state, where it passes just the state. Then an XML record set gets sent from the DA through the BIZ and then to the UI.

Some places for info:
http://www.jamesbooth.com/weblayersi.htm
http://www.jamesbooth.com/n-tier.htm
See "Class based data management" at http://www.tightlinecomputers.com/Downloads.htm

>I am working on a 3-tier framework. UI (VFP form), BIZ, and DA will have bunch of properties of the same name. E.g. TABLE_NAME.
>
>The value of a property will be set in the UI tier (property of VFP) form. E.g. property TABLE_NAME will have value "MYTABLE".
>
>When UI form is instantiated I need to make sure that BIZ and DA properties of the same name get the same values.
>
>The way I instantiate tiers is as following:
>
>INIT method of UI form instantiates BIZ class (and references to a property of UI form).
>INIT method of BIZ class instantiates DA class (and references to a property of a BIZ class).
>
>I can set properties of BIZ class in the INIT of the UI form. But if I set properties of DA class in the INIT of BIZ class it will be too late.
>
>I am looking for suggestions, please.
>
>Thank you.
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform