Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Where do I refresh that view?
Message
From
04/04/2002 14:03:57
 
 
To
04/04/2002 09:50:00
General information
Forum:
Visual FoxPro
Category:
CodeMine
Miscellaneous
Thread ID:
00639725
Message ID:
00641017
Views:
22
>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?

Well, if its data related, the CDE is the obvious place.

>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 may be possible but its probably not the way to do it. For example, you would use form based methods for UI related tasks, like disabling certain controls when certain conditions are true or false, that sort of thing. You certainly wouldn't do that in the CDE. The CDE is about data, the form is about presentation. Thats were the separation should occur.

-=Gary




>
>
>>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
-=Gary
Previous
Reply
Map
View

Click here to load this message in the networking platform