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

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
yahn
Contributor
Contributor

Loading mongodb replica set from context

Hello,
I'm looking for a way to use a replica set in a tMongoDBConnection component.
I would like to manage the host list (size of the list and addresses) dynamically from the context.
Is there any way to do it?


Thanks

Labels (2)
3 Replies
Anonymous
Not applicable

Hi,
Here is tcontextload or implicit tcontextload in talend which can be used to load a context from a flow.
[font=noto, Helvetica, Arial, sans-serif]Please take a look at component reference about:TalendHelpCenter:tContextLoad[/font]
Best regards
Sabrina
yahn
Contributor
Contributor
Author

Hi,
Thanks for your answer.
I already load variables with a implicit context load but I would like to find a way to fill the "Server addresses" tab automatically.
The number of lines may change depending on the properties so I can't just have context variables like server1, server2...
And the component seems not like blank or null variables.



Thanks
0683p000009MFdi.png
Anonymous
Not applicable

I'm not sure if this is what you are looking for...
Just add the parameters in your context:


0683p000009MFdn.png


0683p000009MFaV.png
0683p000009MFaV.png 0683p000009MFds.png