UPLOAD FILE WIDGET Deleting uploaded files

387 views
Skip to first unread message

toni.vida...@gmail.com

unread,
Oct 9, 2014, 9:49:40 AM10/9/14
to suppor...@runmyprocess.com
Hi guys,

I have an issue with "remove" functionality in the upload file widget. We can download uploaded files but we can not remove and "X" image is hidden.

Any help please?

Thank you in advance,
Toni

Shobhit Tripathi

unread,
Oct 10, 2014, 12:52:27 AM10/10/14
to suppor...@runmyprocess.com
Hi,

Their might be some reasons-

1. Have you tried with different browser. Sometimes old cache files creating problems.
2. Please check whether you are not exceeding the uploading file limit(max. 12 Mb) .

Please feel free to ask,

Thanks & Regards,
Shobhit


--
Fujitsu - RunMyProcess
---
You received this message because you are subscribed to the Google Groups "RunMyProcess Support Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to supportforum...@runmyprocess.com.
To post to this group, send email to suppor...@runmyprocess.com.
Visit this group at http://groups.google.com/a/runmyprocess.com/group/supportforum/.
To view this discussion on the web visit https://groups.google.com/a/runmyprocess.com/d/msgid/supportforum/a5dc977f-4ab1-4ec6-b517-900d427d9cfa%40runmyprocess.com.
For more options, visit https://groups.google.com/a/runmyprocess.com/d/optout.



--
Thanks & Regards,
Shobhit
Fujitsu- RunMyProcess

Madhuri Jadhav

unread,
Oct 10, 2014, 6:30:34 AM10/10/14
to suppor...@runmyprocess.com
Hi Toni,

Can you also confirm whether your web interface is public or private.Because in public WI on file widgets you can't delete files.That option is disabled.

Thanks,
Madhuri,Fujitsu RunMyProcess

toni.vida...@gmail.com

unread,
Oct 10, 2014, 6:58:43 AM10/10/14
to suppor...@runmyprocess.com
Hi Madhuri,

web interface is private and we have the widgets in a container. Can this be related?

It's not issue for size.

Thanks,
Toni

toni.vida...@gmail.com

unread,
Oct 10, 2014, 8:07:52 AM10/10/14
to suppor...@runmyprocess.com, toni.vida...@gmail.com, Javier Salinas
Hi guys,

we have discovered that issue is caused by tab widget. We have a script enabling and disabling all widgets using this sentence : id_tabs.setTabActive(0,0) but it seems that file upload widget doesn't activate this "Remove" functionality.

Please, can you check this ?

Thanks in advance,

Sweta Suman

unread,
Oct 13, 2014, 3:41:23 AM10/13/14
to suppor...@runmyprocess.com, toni.vida...@gmail.com, Javier Salinas
Hi Toni,

Make Tab and widget visible by default . On load change visibility of Tab and widget  as false .Based on condition  you can make it visible using JS as-

tab_identifier.setVisible(true);

tab_identifier.setTabVisible(0,1);    // if using more than one tab

id_upload.setVisible(true);

Hope this will resolve your problem.

Thanks and Regards,
Sweta


thoshino

unread,
Oct 13, 2014, 1:12:25 PM10/13/14
to suppor...@runmyprocess.com, toni.vida...@gmail.com, javier.c...@gmail.com
Hi Toni,

I observe the same, and reported to the product team.

I have a tab widget, and inside first tab has a file upload widget.

I attach a file to upload widget. I see download and remove buttons for each file.

I inactivate the tab 1 by  id_tab.setTabActive(0,0).
The upload widget's "upload file" and "remove file" functions are disabled, download is still possible.
This is correct, the use for this is for read-only screen.

Then, I re-activate the tab 1 by  id_tab.setTabActive(0,1).
I can upload more files, I see download function for each file, but remove file is not enabled.

I tried  id_uploadwdiget.refresh(), doesn't seem to fix the problem.
This is the issue you are reporting, correct?

Thank you for reporting the issue, will keep you updated on this.

Best regards,

Taka

toni.vida...@gmail.com

unread,
Oct 23, 2014, 6:21:35 AM10/23/14
to suppor...@runmyprocess.com, toni.vida...@gmail.com, javier.c...@gmail.com
Yes, this is the issue. Have you advanced about it?

toni.vida...@gmail.com

unread,
Oct 24, 2014, 5:27:56 AM10/24/14
to suppor...@runmyprocess.com, toni.vida...@gmail.com, javier.c...@gmail.com
Hi guys,

please, can you give us a work-around about this? We have a project that users need be able to remove uploaded files from web interfaces. These forms have defined file widgets inside a tab container. We have a javascript to active/inactive these tabs and widgets depending on user rights.

Thank you,
Toni
Message has been deleted
Message has been deleted

thoshino

unread,
Oct 24, 2014, 12:09:24 PM10/24/14
to suppor...@runmyprocess.com
Hi Toni,

How about adding a JS button temporary, until platform fixes this issue?

Attached is example I made for testing.
The button is "Execute script" button, with 2 lines of code.

id_file.deleteSelected();
id_file.refresh();

"id_file" is id of file upload widget.

User has to select the file from the widget (it will be highlighted - very faint color difference), and click on remove file.

Best regards,

Taka
2014-10-24 09_06_36-_tab and file.png

toni.vida...@gmail.com

unread,
Oct 28, 2014, 6:56:04 AM10/28/14
to suppor...@runmyprocess.com
Hi,

it doesn't work correctly. I have created this JS button but files are not deleted. Files disappear and appear again when the widget is refreshed

Script:

id_cw_itd_1.id_attach_file_innomeeting_1.deleteSelected();
id_cw_itd_1.id_attach_file_innomeeting_1.refresh();

Any idea?

Thanks,
Toni
capture_remove_file.png

Bidisha Das

unread,
Oct 28, 2014, 7:52:31 AM10/28/14
to suppor...@runmyprocess.com, toni.vida...@gmail.com
Hi Toni,
You can only use : id_cw_itd_1.id_attach_file_innomeeting_1.deleteSelected(); This is enough to delete your files. When you use id_cw_itd_1.id_attach_file_innomeeting_1.refresh(); in the 2nd line, it would refresh the files after each deletion and you need to again select the file and run the code.So basically when you first select the file and click on button,it refreshes the file and then you need to again select the file and run the code,so file will finally get deleted. 

So its better you use  id_cw_itd_1.id_attach_file_innomeeting_1.deleteSelected(); alone.


Thanks & Regards
Bidisha

toni.vida...@gmail.com

unread,
Oct 28, 2014, 9:04:29 AM10/28/14
to suppor...@runmyprocess.com, toni.vida...@gmail.com
Only with this sentence this issue doesn't fix too.

If I write "id_cw_itd_1.id_attach_file_innomeeting_1.downloadSelected();" , this works to download and view the selected file.

toni.vida...@gmail.com

unread,
Oct 28, 2014, 1:13:13 PM10/28/14
to suppor...@runmyprocess.com, toni.vida...@gmail.com
Hi all,

if I try this with a new active widget it works but not fix when this widget have been disabled early using javascript.

Any help?

Thanks,
Toni

toni.vida...@gmail.com

unread,
Oct 28, 2014, 1:39:39 PM10/28/14
to suppor...@runmyprocess.com, toni.vida...@gmail.com
I think the problem is the widget within the tab container. See attached captures.
capture_widgets_2.png
capture_widgets.png
capture_script.png

thoshino

unread,
Oct 28, 2014, 2:21:54 PM10/28/14
to suppor...@runmyprocess.com, toni.vida...@gmail.com
Hi Toni,

I see your problem and my proposed code does not solve your issue.
Sorry about that.

I made further tests, and the symptoms are observed for file widget outside tab also.

id_file.setActive(false);
id_file.setActive(true);

When I look into HTML elements, download button is removed when de-activated, and it never comes up again even after activation.

I am trying to find a workaround for you.
If you are able to get the file url that you want to remove, you can do a HTTPs request, method "DELETE" + if_filewidget.refresh(), and it removes the file from list (and platform as well).

Example is this
Method DELETE

You can get file list of the widget with 
RMPApplication.get("file_widget_variable");

But how a user will choose the single file he/she wants to delete from list of files is not so easy to recommend.

Best regards,

Taka
Reply all
Reply to author
Forward
0 new messages