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: 
sunil2288
Creator III
Creator III

Can we have rename application using variable

Dear Qliktechies,

Here i have a question.

Can we rename an application while saving the Qlikview application using a variable value.

Let's say i have a variable

Let vAppName:- 'ABC'

//Let vAppName:- 'DEF'

//Let vAppName:- 'GHI'

And each time i uncomment one and comment the rest of two and reload the application will save with that variable name.

Here in this case after reloading the application it will be saved as ABC.

Can anyone help me out with this??

Regards

Sunil

11 Replies
sunil2288
Creator III
Creator III
Author

Hi Toni,

It is not needed to load any data.

My requirement is i have 3 different Servers from where the data is loading. When i change the name of the server , that time the application should also reflect that it is showing from that Server .

Here in this case Variable 'vAppName' represents the Server name and as it is the Server name when i mention vAppName='ABC' ,it will take that include file which contains ABC Server's connection string.


At the same time it will also change the application name as ABC as it represents ABC Server's data.


I hope i have clarified my requirement.

Regards

Sunil

marcus_sommer

Such a SaveAs directly within the load isn't possible. You could only rename the file after the reload is finished - this could be done with batches or your app-updating will be controlled from another qvw per vbscript.

As alternatively you could use for each server a different app. But is it not enough to display the server origin within the app maybe within a textbox which showed the server-name, load-time and so on.

- Marcus