Best answer by GertjanView original
Can you disable the csv download in the WebUI?
In our app we use excel upload and downloads such that users are able to change and distribute data more easily. So we have written procedures that write and read excel files for the data in the app. With the new widget actions, it seems most logical to also place these download and upload actions there. But there is still an option to download the data as a .csv file. As not to confuse any users which download they should use, I would like to disable the option of downloading as a .csv file for certain tables. Is there a way to disable this feature?
Already have an account? Login
Please use your business or academic e-mail address to register
Login to the community
No account yet? Create an account
Enter your username or e-mail address. We'll send you an e-mail with instructions to reset your password.
You can modify the WebUI easily via css styling. For your case you can simply disable the button for downloading via a css file as follows:
Add a css file to the project folder \MainProject\WebUI\resources\css\,
Let's name it disableDownload.css
Add the following content to this file:
As a result all the download buttons of the widgets in your app are gone.
BTW: If App level is offered next to a Per Table; there needs to be a hierarchy. We would say: If App level is set to "NoShow" (default is Show) it will overwrite all per Table settings regardless of its value.
Love to hear your feedback/ideas.
But currently in the app I wanted it for, we have quite some download/upload procedures for the input part of the app. To avoid confusion, I would like to disable the csv downloads there. But for output tables we have not (yet) made any download procedures (as this also takes time and is not that important), so there I would like to keep the csv option, if a user really wants to extract it to an excel for some reason. So for this app, the per table switch would really help.
And the hierarchy indeed sounds like the logical way to do it.