Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Updating delete record
Message
 
To
31/10/2002 14:18:49
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00717408
Message ID:
00717490
Views:
18
You could set dele off, then use yourview again as lookup_alias, then set dele on and continue as usual. Before update you will be able to check whether key exists in the lookup_alias.

>Yuri:
>
>Sorry, I didn't say all the restrictions.
>
>- I must use an unique (principal) index, for referential integrity
>- I can't PACK any table, I'm working in a shared environment, so can't open any table EXCLUSIVEily.
>- To be exact, the key is not field (so I cant generate it), but a combination of two tables-key user selects. User can select them once, then delete, and select the two tables-key again (then is when problem occurs).
>- That's exactly what I want to do but, remember: Im working on a view. How do I know that the record I inserted in view exists on the table (and marked as deleted on table) before I throw my TABLEUPDATE?? :(
>
>
>
>
>>There are a few possible solutions:
>>- make index not unique,
>>- pack table as often as possible to remove deleted records,
>>- when delete set procedure to replace the key with some unique identifier differs from what you use for this key
>>- (that is what I prefer) check for user input before update and do adequate changes in the table, like recall deleted record and replace values with new entered by user, or replace key for deleted or set procedure to update key properly when inserting,....
>
>>Best Wishes
Previous
Reply
Map
View

Click here to load this message in the networking platform