Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Survey of those using XML
Message
De
21/07/2000 22:02:45
 
 
À
18/07/2000 14:06:27
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00392968
Message ID:
00395815
Vues:
8
A simple example using WebConnection and the WWSession object

define class weborder as relation

customerName = ''
customerAddr = ''
customerEmail = ''
lineitems = ''

function restoreLineitems
= xmltocursor( this.lineitems, 'lineitems' )

function StoreLineitems
this.lineitems = cursortoxml( 'lineitems' )

function SaveState
this.StoreLineItems()
lcStr = objtoxml(this,'order')
oSession.SetField( cData1, lcStr )


This is very simplified and abreviated but it should give you an idea how it may be done using WebConnect / and WWXML from West-Wind Software.
( www.west-wind.com )


>Glenn,
>
>Can u give me a little more info on how u do this? It sounds like it might be the answer to something I'm working on.
>
>Thanks,
>
>PF
>
>>We are using XML as a state retention device for a WEB system. We preserve a stateful object in XML between user hits. In the object is info regarding user registration, order header info and order details.
>>
>>
>>>Hi. I guess you can say I'm taking a survey. I would like to hear from those of you who are actively using XML, especially where VFP is involved. What are you doing with it? Why is it better for your situation than any alternatives, especially ADO?
>>>
>>>I know that's a very broad question. You can start with general answers, if you like, and maybe we'll get more specific later. Thanks.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform