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...
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...