Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Where do I refresh that view?
Message
From
04/04/2002 09:50:00
 
 
To
03/04/2002 17:53:46
General information
Forum:
Visual FoxPro
Category:
CodeMine
Miscellaneous
Thread ID:
00639725
Message ID:
00640862
Views:
16
I decided to put a requery in the CDE method AfterUpdateAll

the code I added is



local oMyView

oMyView = this.getcursor('NameOfCursor') && Where this is the CDE object.
oMyView.requery()




I did it this way because I want the majority of things to be processed in
the CDEs cmCursors or cmRules. Does that make sense? From your experience. Is
it possible to have everything processed there and not ever having to put
code in a form's methods or even in object's methods?


>It strikes me that if Denis is adding/deleting (in the form) from the view, he only really need to refresh the grid rather than requery the view (assuming that the grid is actually based on the view).
>
>-=Gary
>
>>>CodeMine 7.0 RC 2
>>>
>>>My form has a 2 pages pageframe. Page 1 is entry. Page 2 is
>>>grid. After a record is added (and saved) I can't see
>>>everything on page 2.
>>>
>>>I use a cde, cmCursor and cmRule. So I'd like to know where
>>>would be the best place to refresh that view?
>>
>>If the page is tabbed I place
>> Thisform.cmDataManager.Requery("Viewname")
>>in the Pages activate method since this will only requery when its necessary to look at the info on the page. If the pageframe is always visible you could use the cmdatamanager after... methods such as Afterchange, AfterUpdate
*******************************************************
Save a tree, eat a beaver.
Denis Chassé
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform