1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Anuncie Aqui
    Anuncie aqui você Também: fdantas@4each.com.br

[Stackoverflow]

Discussão em 'StackOverflow' iniciado por fdantas, Agosto 4, 2021.

  1. fdantas

    fdantas Administrator Moderador

    I use DATASET to export XML in progress.

    my code:

    /*declare and create DATASET*/

    DEFINE TEMP-TABLE ttLASRow NO-UNDO
    FIELD temp_wonbr AS CHARACTER
    FIELD temp_id AS CHARACTER.

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

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

    DEFINE DATASET dsLAS 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 Progress V9.1E04 ( QAD mfg/pro V9.0 SP2) . Error :

    Unable to understand after -- "DEFINE". (247) ( understand " DATASET" ) x
    x x** Invalid statement. (254) x
    x x** Could not understand line 18. (198)


    Please support!

    Continue reading...

Compartilhe esta Página