Information générale
Catégorie:
Codage, syntaxe et commandes
Alvin,
try to create a new form with just a grid and a private Datasession
do you have the same problem?
Arnon
>Thanks Arnon,
>
>Here is the reason why i assumed that the data session isn't set.
>
>The form works ok when datasession is set to 1, but when i changed it to 2 (private datasession) the grid doesn't refresh. the grid only refreshed after i changed the data session to 2 using the command.
>
>Maybe it has something to do with binding the field to the grid controlsource.
>
>>>When you set the form to a Private datasession.
>>>
>>>I expect the form to set to it's data session.
>>>
>>>However if you look at data env after running the form it's set to default.
>>>
>>>I tried to put this code in the forms init event. but still couldn't make it to point the the correct data seesion.
>>>
>>>set datasession to thisform.datasession
>>>
>>>TIA
>>
>>Alvin,
>>the form does set the datasession to its own
>>- the "problem" is that it is set only when the form is active
>>(or when you SET DATASESSION explicitly)
>>if you run the form in debug mode you'd see the various controls reference the tables/views in the currect data session
>>
>>IAC
>>when you suspend the form you can type SET
>>and then chose the form's datasession using the combobox
>>(if you want to browse etc any table from the form's Data session)
>>
>>Arnon
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement