Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to create XML of field changes?
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9
Divers
Thread ID:
01031659
Message ID:
01031661
Vues:
19
Take a look at XMLUPDATEGRAM() Function.

>In my continue attempt to change the monolithic application to n-tier, I came across the following. I would like to pass an XML fro UI tier to BO tier so I need to create an XML file of changed field values. For example. Say the form is bound to view V_MYVIEW. User makes changes to some fields. Then I want to create an XML string that would consist of Field Name and Field New Value.
>
>
>FOR i = 1 TO FCOUNT()
>  IF EVALUATE(FIELD(i)) <> OLDVAL(FIELD(i), "V_MYVIEW")
>     *-- ! User made change to this field.
>     *-- THIS IS WHERE AN ELEMENT OF XML WOULD BE CREATED BUT
>     *-- I DON'T KNOW HOW.
>  ENDIF
>ENDFOR
>
>
>Could anyone give me a sample of what code would go in the commented line above?
>
>Thank you.
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform