Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Front-end question in n-tier app
Message
From
14/01/2003 11:27:33
 
 
To
14/01/2003 11:10:25
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Miscellaneous
Thread ID:
00740921
Message ID:
00741495
Views:
29
That's what I thought. Is there any particular reason you prefer ADO?

Thanks
Kev

>You can't use views in an n-tier application. Data access will be passed as either XML or ADO (which I prefer).
>
>
>>Thanks for the response.
>>
>>Can you pass views in VFP though?
>>
>>Thanks
>>Kev
>>
>>>What if you have a customer and their orders on the same form? What would thisform.odata.getvalue('CustID') return? Would it return customer.custid or orders.custid?
>>>
>>>My point is that I don't think having one oData instance on your form is going to get you very far, and you are going to do a lot of work doing your own data binding. Basically, Microsoft's controls work very well binding themselves to tables, views, and cursors. All of the Microsoft RAD tools push you in the direction of having your middle tier return views that your UI can bind to.
>>>
>>>So, to answer you question, the UI would simple bind to a view or REPLACE in a view. Your business object would be responsible for tableupdating the view.
>>>
>>>>Hi
>>>>
>>>>What is the best way to retrieve/save values from a record in a table in n-tier design?
>>>>
>>>>I was thinking something like a thisForm.oData.GetValue(cField) to retrieve the value, and a SetValue(cField) in the Valid of the textbox or something.
>>>>
>>>>Any suggestions?
>>>>
>>>>Thanks
>>>>Kev
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform