Customer Portal

Select some record field

Comments 3

  • Avatar
    oldforum
    0
    Comment actions Permalink
    I tried something like that. In fact it was my first idea of what is a metadata and how I can use it, but the process stop after the first line... I will have another look at my xml to see where is my error.

    Many thanks for your help,

    François
  • Avatar
    oldforum
    0
    Comment actions Permalink
    Hello!

    In one minute i prepared in Clover.GUI easy schema for your purpose.

    <?xml version="1.0" encoding="UTF-8"?>
    <Graph name="graph">
    <Global>
    <Metadata id="Metadata2">
    <Record name="inputMetadata" type="delimited">
    <Field delimiter=";" locale="cs.CZ" name="Field1" nullable="true" type="string"/>
    <Field delimiter=";" locale="cs.CZ" name="Field2" nullable="true" type="string"/>
    <Field delimiter=";" locale="cs.CZ" name="Field3" nullable="true" type="string"/>
    <Field delimiter="\r\n" locale="cs.CZ" name="Field4" nullable="true" type="string"/>
    </Record>
    </Metadata>
    <Metadata id="Metadata3">
    <Record name="outputMetadata" type="delimited">
    <Field delimiter=";" locale="cs.CZ" name="Field1" nullable="true" type="string"/>
    <Field delimiter=";" locale="cs.CZ" name="Field2" nullable="true" type="string"/>
    <Field delimiter="\r\n" locale="cs.CZ" name="Field4" nullable="true" type="string"/>
    </Record>
    </Metadata>
    </Global>
    <Phase number="0">
    <Node enabled="enabled" guiHeight="0" guiName="Delimited Data Reader (New I/O)" guiWidth="0" guiX="216" guiY="286" id="DELIMITED_DATA_READER_NIO0" type="DELIMITED_DATA_READER_NIO"/>
    <Node append="false" enabled="enabled" guiHeight="0" guiName="Delimited Data Writer (New I/O)" guiWidth="0" guiX="611" guiY="279" id="DELIMITED_DATA_WRITER_NIO0" type="DELIMITED_DATA_WRITER_NIO"/>
    <Node enabled="enabled" guiHeight="0" guiName="Reformat" guiWidth="0" guiX="417" guiY="287" id="REFORMAT0" type="REFORMAT">
    <attr name="transform">${out.0.Field1} = ${in.0.Field1};
    ${out.0.Field2} = ${in.0.Field2};
    ${out.0.Field4} = ${in.0.Field4};
    </attr>
    </Node>
    <Edge fromNode="DELIMITED_DATA_READER_NIO0:0" guiBendpoints="" id="Edge0" inPort="0 (Reformat)" metadata="Metadata2" outPort="0 (Delimited Data Reader (New I/O))" toNode="REFORMAT0:0"/>
    <Edge fromNode="REFORMAT0:0" guiBendpoints="" id="Edge1" inPort="0 (Delimited Data Writer (New I/O))" metadata="Metadata3" outPort="0 (Reformat)" toNode="DELIMITED_DATA_WRITER_NIO0:0"/>
    </Phase>
    </Graph>


    If you have any questions, i'm ready to answer you. GL, Martin.
  • Avatar
    oldforum
    0
    Comment actions Permalink
    First mistake i see in the last field of your metadata. Delimiter is probably \r\n or \n.

    OtaSanek

Please sign in to leave a comment.