45
Views
13
Comments
Solved
Upload word file in form and show in table

Hi all,

Im working in Traditional web and i cant seem to upload a word file. i've used the upload widget but i cant seem to upload it. I can select it, but i dont got an option to put the document in a variable in traditional web so i cant save it. Does someone know how to do this? I cant find a proper explanation. There is for reactive but not for web.


Thanks in advance! 

UserImage.jpg
Puja Rani
Solution

Hi,
Please see the OML attached. Upload widget does allow uploading any file type. Hope it helps. 

TESTWEBAPP.oml
UserImage.jpg
Faissal Berrhout

Thank you, this worked!

2022-04-29 05-12-00
Rijan Lexter Libunao

Hi! 
Can you share your oml here or screen shot of your acction.

Thank you!

UserImage.jpg
Faissal Berrhout

Here i got the upload in my form, and i thought i could just put the uploaded document in a variable, but i only see style classes, display and destination as options. And then in my table i wanted to try get the document and thats it. But it seems to be much more complicated then i thought. (Im new to outsystems)

Screenshot 2024-04-02 114555.png
Screenshot 2024-04-02 114629.png
Screenshot 2024-04-02 114834.png
2022-04-29 05-12-00
Rijan Lexter Libunao

In order to save the uploaded file , you need to fetch the file using the content of the upload widget.
To do that, in your Save button you can assign the file to variable :

UserImage.jpg
Faissal Berrhout

Thank you, i've tried it but it didn't fill the variables. I debugged it and i see that the variables stays empty. Do you know why? 

Screenshot 2024-04-02 114834.png
Screenshot 2024-04-02 122403.png
2022-04-29 05-12-00
Rijan Lexter Libunao

Are you using ajax submit in your button right now? 

Can you try to change it to Submit only and see if it works. 

UserImage.jpg
Faissal Berrhout

Unfortunately it doesnt work, with submit and ajax submit

2022-04-29 05-12-00
Rijan Lexter Libunao

Can you share your OML file so we can check it further ?

Thankyou

UserImage.jpg
Faissal Berrhout

Sorry for my late reaction here it is

SRS.oap
2022-04-29 05-12-00
Rijan Lexter Libunao

Hi Faissal ,
I've cheked your file and the button to trigger the save is set to Ajax submit.
May you  set it to Submit and try it again?

Thanks

SRS.oml
UserImage.jpg
Faissal Berrhout

Hi Rijan,


Thankyou for your reply. Unfortunately that didnt help :(

UserImage.jpg
Faissal Berrhout

Does someone have a solution for this?

UserImage.jpg
Puja Rani
Solution

Hi,
Please see the OML attached. Upload widget does allow uploading any file type. Hope it helps. 

TESTWEBAPP.oml
UserImage.jpg
Faissal Berrhout

Thank you, this worked!

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