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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Dynamic host connection using global variables

Hi,

I am working on a project and I thought of a design where user will give an input through tMsgBox and that input should be stored in a global variable, depending on the value in that global variable can we set or change the host for FTP and SSH
Advises are appreciated.

Thanks,
Abhishek

Labels (2)
1 Reply
TRF
Champion II
Champion II

Hi,
You can use retrieve the value entered by the user in the global variable tMsgBox_RESULT associated to the component:

((String)globalMap.get("tMsbBox_1_RESULT"))


This variable can be used directly, or you can set a context variable from this variable if needed. For example:

context.FtpServer = ((String)globalMap.get("tMsbBox_1_RESULT"));

Hope this helps.


Regards,
TRF