Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Tabbed Forms
Message
De
24/05/1999 11:34:35
 
 
À
24/05/1999 11:10:35
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00221929
Message ID:
00222084
Vues:
25
Actually, I think the suggestion above about page frames is what I'm looking for. Assuming this new class let's you do it, bind a separate private data session do each page in a PageFrame, maintaining the SessionIds in an array as suggested. Presto, a true tabbed application with a very reasonable amount of work. As soon as I get release 3.0, I'll seen if the session object can do what I want, and will report back.

Thanks

Gar

>>>Hiya Craig ---
>>>
>>>What I am trying to figure out is how the Session would be used. OK...lets say you have 3 tabs. On Form Load, you could CREATEOBJECT 3 Sessions with Private datasessions. In the Init of each session, you load the tables as desired. You send the DataSession id back to form props to be able to set it right, OK?
>>>
>>>So...what then? Do you SET DATASESSION on the Activate of each form? I'm just trying to see the bridge between the concept of the Session and the practicality of using it in this situation......
>>>
>>
>>In this case, set the datasession for each object. If I read the SP3 docs properly, there is a datasessionId property of each object, so you can bind it to the proper datasession. I haven't actually looked at this yet, but it seems the way to do it. I guess you could also SET DATASESSION in the Activate of each tab.
>
>I don't think you would need the datasession class where you have a form or other class that already can create a private data session. You would use it with a class that doesn't have a private data session.
>
>For example, a middle-tier business object, based on custom, could use the data session object to keep it's data private from other business objects. Up to this point, people might do this with an invisible form, but the form has much more over head than custom or relation which I guess alot of people use.
>
>I wonder if you could actually even create your business object as a subclass of Session. Although, then you couldn't visually edit it, so probably not a good idea.
>
>Also, things like Ken Levy's supercls has a private session, I assume he is doing it with an invisible form, could use the session object.
>
>Doug Hennigs DBCX2 is based on a form so it can have a private data session... can be modified to be custom and use the Session class to provide a private data session.
>
>I am sure others can think of many other ideas.
>
>Hey, and I am not saying you won't use it in a form... perhaps in a form you could create a session for each historical version of specific record, then your combo box of versions would only have to set session and do a refresh... ALthough, I am not sure this would work if each control has a data session ID... perhaps you would have to do a SetAll ???
>
>BOb
Thanks

Gar W. Lipow
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform