Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
CursorAdapter WITH xmlAdapter
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
XML, XSD
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01097979
Message ID:
01097997
Vues:
15
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
Fil
Voir

Click here to load this message in the networking platform