[Stackoverflow] [Progress OpenEdge ABL] How to export XML from mfg/pro V9?

  • Thread starter Thread starter Nguyen
  • Start date Start date
Status
Not open for further replies.
N

Nguyen

Guest
I use DATASET to export XML in progress.

my code: /declare and create DATASET/

DEFINE TEMP-TABLE ttLASRow NO-UNDO SERIALIZE-NAME "LASRow" FIELD temp_wonbr AS CHARACTER FIELD temp_id AS CHARACTER.

DEFINE TEMP-TABLE ttAllocations NO-UNDO SERIALIZE-NAME "Allocations"
FIELD parentid AS RECID SERIALIZE-HIDDEN.

DEFINE TEMP-TABLE ttAllocDetails NO-UNDO SERIALIZE-NAME "AllocDetails"
FIELD parentId AS RECID SERIALIZE-HIDDEN FIELD Emplacement AS CHARACTER FIELD Reference AS CHARACTER FIELD NumLot AS INTEGER FIELD ExpDat AS CHARACTER SERIALIZE-NAME "Expire" FIELD Qalloc AS INTEGER FIELD msg AS CHARACTER SERIALIZE-NAME "Message".

DEFINE DATASET dsLAS SERIALIZE-NAME "LAS" FOR ttLasRow, ttAllocations, ttAllocDetails PARENT-ID-RELATION FOR ttLasRow, ttAllocations PARENT-ID-FIELD parentId PARENT-ID-RELATION FOR ttAllocations, ttAllocDetails PARENT-ID-FIELD parentId .

/Export XML/

DATASET dsLAS:WRITE-XML("file", "c:\temp\xml.xml").

But it doesn't work on mfg/pro V9. Please support!

Continue reading...
 
Status
Not open for further replies.
Back
Top