[Reactive Multiple File Upload] Clearing the list
Forge component by José Pedro Proença
Application Type
Reactive

Thank you for this component. 


Just want to ask how to trigger to clear the list of files? aside from removing it 1 by 1. 


Thanks in advance for the answer

Solution

Hi Johnwel,

Since the component stores files in database to reset(delete) the files completely first we need to delete the respective file database values and we need to clear the list by notifying the component block. Mild changes to the component will do this trick easily.

Please find the attached OML and URL , hope this helps.

URL : https://saravanan-gamechanger.outsystemscloud.com/TEST/MultiFileUpload?_ts=637611714621411585

In Component Please add this boolean parameter (IsDelete) and Clear list in on parameters changed action of the component block,

TESTMultifile06072021.oml

Thank you! @Saravanan S 

Solution

Hi Johnwel Amador,

Added to the above answer. To clear the list of files, you need to customize the plugin.

Step1 : create a new service action in MultipleFileUploadReactive_Lib module. which has input id as a text

Step2 : Deserialize the input Ids. Then iterate the loop, delete the particular Id or else you can also use the delete query

Step 3: Add the delete button and create a delete all action in the MultipleFileUploadReactive_CW.

You need to pass the serialised Id as a input to the delete all service action in the lib layer.

I have attached the URL  and oml here

Regards,

Ellakkiya.S

oml.zip

Thank you so much for helping me @Ellakkiya S 

Hi Johnwel,

You can manually run the timer (Timer_DeleteFiles) in ServiceCenter to clear all the files. Please refer below. screenshot.


Click Run Now button to clear list of all the files in database.

Good Luck.


Thanks,

Aadhavan S

Thanks @Aadhavan Shanmugam , I also need this to delete the stored files in the database. 

Solution

Hi Johnwel,

Since the component stores files in database to reset(delete) the files completely first we need to delete the respective file database values and we need to clear the list by notifying the component block. Mild changes to the component will do this trick easily.

Please find the attached OML and URL , hope this helps.

URL : https://saravanan-gamechanger.outsystemscloud.com/TEST/MultiFileUpload?_ts=637611714621411585

In Component Please add this boolean parameter (IsDelete) and Clear list in on parameters changed action of the component block,

TESTMultifile06072021.oml

Thank you! @Saravanan S 

Solution

Hi Johnwel Amador,

Added to the above answer. To clear the list of files, you need to customize the plugin.

Step1 : create a new service action in MultipleFileUploadReactive_Lib module. which has input id as a text

Step2 : Deserialize the input Ids. Then iterate the loop, delete the particular Id or else you can also use the delete query

Step 3: Add the delete button and create a delete all action in the MultipleFileUploadReactive_CW.

You need to pass the serialised Id as a input to the delete all service action in the lib layer.

I have attached the URL  and oml here

Regards,

Ellakkiya.S

oml.zip

Thank you so much for helping me @Ellakkiya S 

Hi, Thanks for your question.

We will add a new version soon and we will incorporate the Delete All action.


Hi everyone,

Based on the feedback from Johnwel Amador and other developers, a new version of the component was just uploaded to the forge with the following change log:

Multiple File Upload with Temporary Table:

- Added New events to enable or disable the loading animation with more precision;

- Added Maximum number of files allowed per upload;

- Added Clear all files functionality;


Multiple File Upload Binary:

- Created a brand new block that allows you to get the binary files and manage the upload on your own application, without storing then on this component temporary table;

General improvements:
- Upgraded to the latest OutSystemsUI (version 2.6.9)

- Added Loading Animation block that can be used on other contexts

Please go ahead and try it, as you can see we've now added the clear all files functionality :)

Thanks everyone for the feedback.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.