Post a reply

Write your message and submit

Options

Click in the dark area of the image to send your post.

Go back

Topic review (newest first)

Lie
2010-05-26 15:27:37

Hi,

You can use a tFlowToIterate and a tFixedFlowInput.

[a component...]----rowX---->[ tFlowToIterate ]----Iteration---->[ tFixedFlowInput ]----rowY---->[ t FileOutputXML ]

In the tFixedFlowInput, set the correct schema you want to output in your xml. Then map the columns using tFlowToIterate.columnName. The autocompletion should change this to ((String)globalMap.get("rowX.columnName")).

In your tFileOutputXML, you can complete the filepathfield with those vars, such as "file" + rowX.id + "_" + rowX.beginDate + ".xml"



Regards,

Lie

jte
2010-05-26 14:57:56

Hello,

I have a first parameter P1 (begin date) and a second parameter P2 (duration).

I want to generate one XML file per day.

Example : P1 = 25/05/2010, P2 = 2
25/05/2010 - 1 - toto
25/05/2010 - 2 - titi
26/05/2010 - 3 - tata

I want 2 files :
file1_25052010.xml
file2_26052010.xml

How can I do ?

Thanks for your help.

Board footer

Powered by FluxBB