Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Front-end question in n-tier app
Message
From
14/01/2003 05:53:03
 
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Miscellaneous
Thread ID:
00740921
Message ID:
00741348
Views:
20
Dave

If my controls bind to views, what will the views be based on? Surely they can't be based on what's in the DB.

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