Is there any way to get the user to name the file?

Hi! I am making an app that generates a file with some data, I would like the user to be able to give a name to that file. I tried to do it through a textbox, but the name of the file created does not correspond to what is entered in the textbox.
Is there any way to get the user to name the file?

These are my relevant blocks

In what way does it not correspond ?

Also you should not need to use EFile for this. Use the / to save to the ASD, don't use the / to save to private Dir. This assumes your Filescope = App

for example, in my blocks, it appears that the name of the file must be MC+whatever the user writes in the texbox.csv, but when I download the file it has the name MC.csv without taking into account what the user writes in the textbox.

You set the global Filename on initialise of the screen (when the textbox is empty), but you do not then set it again when the textbox has content. Do a:

set global Filename > TextBox1 (and set global privateDir > TextBox1)

at the beginning of your data click event and all should be well

3 Likes

thanks a lot, it worked! :smiley:

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.