0
Views
2
Comments
Problem with widget "input filename" in 5.0, button method (AJAX or SUBMIT?)
Question
Hello.
I'm having a problem with widget "input filename" in version 5.0.
In the flow of a screen action I test the attribute "Filename" of the widget to check if it's empty ("").
When the method of the button that calls the screen action is AJAX the attribute "Filename" of the widget is empty ("") even though a file has been selected in the widget "input filename".
If the method of the button is SUBMIT it works ok.
This code appeared to be working in version 4.1 because it hasn't been changed since the upgrade from 4.1 to 5.0.

Can anyone confirm that in 5.0 the method of the button must be SUBMIT and not AJAX for it to work?

Thank you.
2019-08-20 01-57-17
RafaOutSystems
 
MVP
Hi Tiago,

Works fine on 4.1 because on 4.1 Outsystems "native" Ajax wasnt available...
For upload purpose you'll realy need a Submit (POST)...I didn't try on 5.1 but it's my guess...

Best Regards,
Rafael Pereira


2023-10-06 09-22-20
Tiago Bernardo
Champion
In the meantime, for what I've verified, the method of the button must be SUBMIT, both in 4.1 and 5.0. AJAX won't work.
Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.