How to use input_row.Name to set for each row a new fileName output?
I read rows from a data source1. (schema DS1.Name, DS1.data, ...)
I wish to change fileName output with DS1.Name value. How can I do it?.
DS1 -> FileOutDS1.Name
a tJavaRow component enables to get/set a new context var value. but if this var is used in the fileName settings of the output file, it is first set to null (initial context val) and the new context value is not refreshed before the subjob execution ends (data source1 reading).
Hi,
great! thanks a lot!!
That works exactly as I wished. (with TOS 2.4, the flowToIterate icon changes)
The tFixedFlowInput component was the one I missed!!
The tNormalize doesn't seem to be useful for my needs as I can have several columns from the tFixedFlow. I only have to care about data conversion to String.
Integer.toString(row1.Id)
(String)globalMap.get("row1.Libelle")
I could also add a tJavaRow for intern data manipulation.
output_row.Id=input_row.Id;
output_row.Libelle= "<Hello>" + input_row.Libelle + "</Hello>";
If I could, I would just ask for another exemple when you have time: how can I use technical components tArray and tArryIn to deal with data storage for further purpose. I didn't manage to use tArrayIn to get back initial data stored in tArray.