Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
My job is trying to generate multiple XMLs.
Something like I look up the main record, then get all the related records, then generate 1 xml file per main record.
for example, Look up Class, get details. Look up students, get list of students. XML is something like
<CLASS>
<ROOM/>
<TIME/>
<STUDENTS>
<PERSON>
<NAME/>
<AGE/>
<STATUS/>
</PERSON>
<PERSON>
<NAME/>
<AGE/>
<STATUS/>
</PERSON>
</STUDENTS>
</CLASS>
My problem is each class will be a seperate XML and tAdvancedFileOutputXML seems to have issue using a dynamic variable as the file path. I'm trying to make each file to be "CLASS".xml but
Any one have a solution?
Hello
It is impossible to access the global variable in the same flow, you need to group the records by class ID and filter the records for each class ID, write each group records to corresponding file.
Here I upload a demo job, I hope it will give you some tips. Let me know if you have any questions.
Regards
Shong
forum56553.zip
|=-------+-------+------+------+----+-------=|
|CLASS |ROOM |TIME |NAME |AGE |STATUS |
|=-------+-------+------+------+----+-------=|
|CLA001 |Rm02 |10:00 |Bob |22 |Enrolled|
|CLA001 |Rm02 |10:00 |John |25 |Enrolled|
|CLA001 |Rm02 |10:00 |Fred |23 |Enrolled|
|CLA002 |LCT5.1 |16:00 |John |25 |Enrolled|
|CLA002 |LCT5.1 |16:00 |James |21 |Enrolled|
|CLA003 |Rm05 |20:30 |John |25 |Enrolled|
|CLA003 |Rm05 |20:30 |Dick |21 |Enrolled|
|=-------+-------+------+------+----+-------=|
Hello
It is impossible to access the global variable in the same flow, you need to group the records by class ID and filter the records for each class ID, write each group records to corresponding file.
Here I upload a demo job, I hope it will give you some tips. Let me know if you have any questions.
Regards
Shong
forum56553.zip