Upload files to a database with the action button
Use the Action Button's Allow file upload property to upload a file to a Planning Analytics database and run a process to use that file.
This can be helpful if you want to import data from a specific file into a view you are using.
- In Edit mode, add an Action Button to your book.
- Select the Action Button and click Properties.
- On the Run Process tab, enable Run Process.
- Select the database on which the process resides.
- Select the process that you want to run.
- Select Allow file upload.
- Click Set parameters to set the parameter values or configure user
prompts that can be answered to set parameter values.
When you select Allow file upload, a File control type parameter is added to the parameters. The File parameter passes the name of the uploaded file to the process parameter.
You can select the File control type for the file name parameter in the process. While this is optional, using the File parameter is helpful when you want to support any file name as the data source for the process.
Note: By default, the Prompt User option is disabled for File control type. - Select Refresh after execution if you want to refresh the current book after the process finishes running. The refresh updates any views, web sheets, visualizations, or selectors in the target book.
Now, when you click the Action Button to run the process, a File upload prompt displays.
Select a file to upload and click Upload. After the file is uploaded successfully, the process starts to run.