Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Just wondering: Two views or one?
Message
From
02/02/2001 15:01:14
Jill Derickson
Software Specialties
Saipan, CNMI
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00471454
Message ID:
00471941
Views:
19
Hi Mark,

Thanks for your input.

: Since your view probably has all the fields that are being updated on page 2, I would say 1 view.
yep, it does.

: I usually have 1 cursor and 1 view.

:The first view is the pick list and is not updatable and has a limited number of fields

: I allow my users to input values for specific fields then build a query to select the matching records into a cursor.

:The value of this property is used in the child form [in the activate method] to REQUERY() the view which, of course, will contain exactly one record.


Sounds like a great idea...thanks...I'm a tiny bit confused about the "1 view" - do you mean 2 views (the not updateable pick list, and the updateable view w/1 entry) and 1 cursor (that displays the records).

The reason I'm wanting to be clear on that is because of the original problem that caused me to rethink how I do this:

>Right now, when changes are made on the second page, the view on the first page is REQUERYed (i'd previously looked into using the VIEW REFRESH() function, that "updates one or more records in a view with the current data from the original data source", but had trouble).

It seems like a lot of network traffic to REQUERY the entire view on the first page, everytime there is a change in an entry. What do you do? when there is a change, do you REQUERY the pick list? or do a REFRESH() on the view - as I said, I've had trouble getting this to work - supposedly "REFRESH() updates one or more records in a view with the current data from the original data source. " I seem to need to do a REQUERY on the entire view in order to see the changed data.

J
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform