Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to create XML of field changes?
Message
 
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01031659
Message ID:
01031661
Views:
18
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--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform