Versions des environnements
Enrique,
From looking at your code, I would say that you need to make sure you are in the new datasession first and then run your XMLAdapter and CusorAdapter code. Creating a session object doesn't automatically put you into that data session and it may be that the above classes stores information in the current data session that is not available in the new data session. I may be wrong, but I think that this may be your problem. Hope this helps.
Dave :-)
>I found the next example is correct:
>
>**Creates a XMLAdapter Object and fill it
>oxad = NEWOBJECT('xmlAdapter')
>oxad.LoadXML(lcXML)
>
>**Creates a CursorAdapter From XML
>ocad = NEWOBJECT('cursorAdapter')
>ocad.DataSourceType ="XML"
>ocad.SelectCmd = 'oxad.Tables(1)'
>ocad.CursorFill()
>That instructions funtion very well,
>the CursorAdapter is created from the XML
>of the XMLAdapter Table Objet
>But there is a problem,
>when I use a Private Session
>oSession = NEWOBJECT('Session')
>Set DataSession to 2
>oCad.CursorFill()
>doesn't work.
>Somebody know how it works in Private Session ?
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