Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
XMLAdapter - ApplyDiffGram Question
Message
De
28/07/2004 09:14:30
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
XMLAdapter - ApplyDiffGram Question
Divers
Thread ID:
00928664
Message ID:
00928664
Vues:
57
Have a situation where some diffgram records are applied and some not. Are there any known issues with ApplyDiffGram that would prevent records from updating? Thanks

- Base table seems OK
- All diffgram records seem OK
- No database validation rules violated
- So far, records not updating don't show any pattern or
deviation from the records that do update

Here's the code:

FUNCTION LoadDiffGram() && XML Parsing (Diffgrams)

LOCAL oMyAdapter,lToAFile,lElementBased, ;
lIncludeBefore,lChangesOnly

SET MULTILOCKS ON
lcFileName = ...name of the diff gram file...
lcViewName = ...view to apply the diffgram to...

SELECT 0
OPEN DATABASE cw2k
USE &lcViewName
CURSORSETPROP("Buffering",5,lcViewName)
oXMLAdapter=CREATEOBJECT("xmladapter")
oXMLAdapter.LoadXML(lcFileName,.t.)
oXMLAdapter.Tables(1).ApplyDiffgram(lcViewName,,.T.,0)

*-- Force any changes to the table to be applied
lnReturnValue = TABLEUPDATE(1,.t.,lcViewName)

USE IN (lcViewName)

RETURN
GOOOOOOOO BUCS !!!!!!!!!
Répondre
Fil
Voir

Click here to load this message in the networking platform