Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Multi-table view update problem
Message
From
01/11/2000 02:09:00
Arnold Lee
K&A International Co.,Ltd
Hong Kong, Hong Kong
 
 
To
01/11/2000 02:06:43
Arnold Lee
K&A International Co.,Ltd
Hong Kong, Hong Kong
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00436572
Message ID:
00436573
Views:
26
>Hi,all
>
>I have a view that combines a temporary cursor and a table like this...
>
>Create Cursor Lookup (CR_NO C(12))
>Insert Into Lookup (CR_NO) value ("AA")
>Insert Into Lookup (CR_NO) value ("BB")
>
>Create SQL Viwe Lookup_view as Select TABLE1.NO,TABLE1.PK from TABLE1 inner join Lookup on TABLE.NO=Lookup.CR_NO
>
>DBSETPROP("Lookup_view","TABLES","TABLE1")
>DBSETPROP("TABLE1.PK","FIELD","KEYFIELD",.T.)
>DBSETPROP("TABLE1.PK","FIELD","UPDATABLE",.T.)
>DBSETPROP("Lookup_view","VIEW","SENDUPDATES",.T.)
>
>The view were successfully created but the view can't be updated to based table.I double check with view designer,found the update flag was missing.
>
>At the other hand,after I modify the Create SQL view by using parameterized view rather than refer to cursor like that...
>
>Create SQL Viwe Lookup_view as Select TABLE1.NO,TABLE1.PK from TABLE1 where TABLE.NO=?AskForNo
>
>Everything is fine as well as the Update flag was correctly marked in View Designer.Is this a problem in Create SQL view statement pointer to a cursor ?
>
>Thanks for any comment in advance.

Some typing mistakes to clarify...
DBSETPROP("Lookup_view.PK","FIELD","KEYFIELD",.T.)
DBSETPROP("Lookup_view.PK","FIELD","UPDATABLE",.T.)

Sorry

Arnold
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform