Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem deleting records from a view
Message
From
19/06/2002 19:20:49
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
19/06/2002 14:47:45
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00670250
Message ID:
00670366
Views:
29
>Hi
>
>I got a view formed by two tables and the user is allowed to update all the fields of it.
>What is the most elegant and pragmatic way to delete records from this view but only one of the source tables gets it records deleted ( this is something like the details of an invoice)?
>
>Thanks in advance

I think you should only make the fields from the invoice-detail table updatable. Thus, the parent table should be untouched. You would include the parent table, to show additional fields - but you don't edit or delete them directly through the view. Look at the view update criteria (criterios de actualizacíón).

Saludos, Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform