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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Felipe02
Contributor III
Contributor III

Rule for users to update application via button


Hello everyone, I created a rule below to only allow this user to update my application and not have permissions to edit folders or scripts.

However, I was unsuccessful. Has anyone experienced something similar?


The user has a professional license, and I need him to only be able to load this already published application via a button

because he selects a variable that is changed in the back end and changes the application's modeling

 

Felipe02_0-1747656438277.png

 

10 Replies
Adam_Romanowski
Partner - Creator
Partner - Creator

As far I know, user must have access to script code, data connections used in script and assigned Professional license.

howdash
Creator II
Creator II

What exactly do you need the user to be able to update in the app? Do you need the user to be able to create their own sheets? Are you looking for them to be able to modify existing objects? Something else maybe?

Felipe02
Contributor III
Contributor III
Author

So the only object he can interact with is the refresh button.

The rest he would like to keep as default.

Felipe02
Contributor III
Contributor III
Author


The user has a professional license assigned.

But I want him to be able to update this published application via the button

howdash
Creator II
Creator II

Ah I see. So if you want a user to be able to reload published apps from the Hub, you can enable that feature.

It won't be via a button inside of an app, but it will allow you to give users ability to reload app tasks whenever user needs it. Here's the link to how that can be done:

https://community.qlik.com/t5/Official-Support-Articles/Qlik-Sense-for-Windows-How-to-allow-task-rel...

Is that what you were looking for?

Felipe02
Contributor III
Contributor III
Author

I really appreciate the support with this material, but I need it to load the application while it is already open. Not in the HUB part, I need it to be in the application because this year variable will affect my backend after updating.

Felipe02_1-1747672911844.png

howdash
Creator II
Creator II

That's a tough challenge. You might need to load the data (both the Orcado and Realizado) for all of the years and then have user select a year that they would like to view...if that's an option.

The issue with variables is that they get erased during reload, just like the data model. I haven't tested it to confirm, but my understanding is that when an app is reloaded the old data model and script variables get deleted and then reconstructed as the script runs. So, even if user selects a year, when the app reloads, that selection gets cleared and is reset to a default value for the variable.

If you make selection (year 2021 or 2022 for example) in the "Informe o Ano a ser analisado" filter and then reload the app, does the app actually load year 2021/2022 or does it load data for some other year?

howdash
Creator II
Creator II

If the app reloads but it doesn't bring in the right data, then it confirms that user selections get reset during reload.

In that case, you likely will need to load data for all available years and have user select the year that they would like to analyze.

Felipe02
Contributor III
Contributor III
Author

In the case of the years input, it can only select one year at a time and perform a load to update and return the data modeled according to the year.

My biggest difficulty is in configuring the security rule to release this button and trigger the reload event. I didn't expect to find any surprises with this.