Cumhur Ata
Cumhur Ata

Reputation: 809

XPages import from excel

I want to import an excel file using XPages. The user can only select an excel file then Javascript codes will handle rest. I mean it's like a fileUpload window but the file type of file that user can select should be only excel files.

Any suggesstion is important C.A.

Upvotes: 0

Views: 526

Answers (1)

Rob Mason
Rob Mason

Reputation: 1417

If your question is about how to restrict the file type, there is a property in the upload control called accept

More information http://xpageswiki.com/apps/wiki-xpages/wiki-xpages.nsf/dx/Work_with_a_file_upload_and_download_controls#Limiting+file+types+for+upload

and also it is shown the second image at this link here: https://www-10.lotus.com/ldd/ddwiki.nsf/dx/Limiting_MIME_types_with_IBM_Lotus_Domino_8.5_XPage_file_upload_control#Adding+the+upload+control+to+your+XPage+or+custom+control

Upvotes: 1

Related Questions