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

Announcements
Save $650 on Qlik Connect, Dec 1 - 7, our lowest price of the year. Register with code CYBERWEEK: Register
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