Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Mongodb schema with multiple loop elements

Hi,
In Mongodb I have to create multiple iterative arrays. But tMongodbOutput is allowing only one loop element.
Please any one help me to create multiple iterative loops 
Ex: My work flow is like this:
oracleTable1 - 
                   |------tMap -- tMongodbOutput 
oracleTable2 - 
In tMongodbOutpur I updated one loop element. Or please let me know how to prepare XML file for it.

expected example output is :
{
"Name": "firstName"
"Education": [{
course: "abc"
"college": "adsf"
}], // if it is one document also it should be array..
workExperience:[{
company": "qwertyui",
"duration": isoDate()
},{
company": "company2",
"duration": isoDate()
}
],
Phone:[
{
Phone: 678-765-xxxx,
type: "primary"
},{
Phone: 987-654-cccc,
type: "emer"
}
],
email:[
{
email: "asdf@adf.com",
type: "primary"

},
{
email: "asdf@asd.com",
type: "alternative"
}
]
}

Labels (2)
1 Reply
Anonymous
Not applicable
Author

Hi,
Have you tried to use tXMLMap to prepare XML file?
Here is the component reference about:TalendHelpCenter:tXMLMap.
Best regards
[font=Verdana, Helvetica, Arial, sans-serif]Sabrina[/font]