Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What form classes should I use?
Message
From
21/12/2002 23:43:25
 
 
To
21/12/2002 18:34:00
General information
Forum:
Visual FoxPro
Category:
CodeMine
Miscellaneous
Thread ID:
00735140
Message ID:
00735216
Views:
9
>Not quite sure I totally see your requirement but let me put it this way. The formdatachild (that Mel suggested) is natively modeless. So, it can be pushed into the background, left open, whatever. A good analogy for this form class is like a pageframe. You could have two pages in a pageframe and have two different records in each page of the pageframe. The formdatachild can be thought of a little like each page in a page frame, except, that in a pageframe, you can only see a single page at a time. With the formdatachild, you can see as many "pages" (forms) as you like. So, if your CDE/DE supports numerous (child) cursors, you could have many child records open/edited at the same time. However, I have a feeling you are referring to having more than one child form editing mutiple records from the *same* table/cursor -- correct?

I meant editing two records of the same table/cursor. For example, if form #1 (the navigation form) listed all students, form #2-A would be used to edit student A and form #2-B would be used to edit student B. Since both are records of the same cursor, I would guess data should be kept separate through private data sessions. That would be the first behavior of the class.

A different behavior of the class, appropriate for different circumnstances, would be what I think Codemine does natively, namely that there is only one form "#2" and that as you navigate through the first cursor, form #2 shows a different record of the navigation cursor (or an expanded version of the navigation cursor).

>If that is the case, then you will need to take a different approach.
>The child forms referred to both inherit the parent form's CDE/DE. They do not have a CDE/DE of their own and therefore, they do not support the use of their own "private" data session (that could contain different records from the same cursor source). They natively operate with what you have in the parent form, no more, no less.

>>so the question is: would Codemine be nice enough to replicate the environment of the parent form in the child form's private data sessions?
>
>See above. These child forms do not support the use of their own private datasessions as far as Codemine is concerned -- they inherit the parent datasession. Therefore, a different approach would be required. I can think of a way to achieve what you need in Codemine. Let me know if I have understood your requirement correctly and then we can discuss a solution.

How would you suggest to do that?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform