cancel
Showing results for 
Search instead for 
Did you mean: 

Upload excel file on a button click

sagar-acharya
Participant
0 Kudos

Hello,

Please see my earlier thread https://forums.sdn.sap.com/message.jspa?messageID=5873692.

I was able to upload .txt file using this code. But uploading .xls file does not work.


var sFile;
event.target.importDataObject(sFile);

var oFile;
oFile = event.target.getDataObject(sFile);
pa0001.Subform.FILENAME.rawValue = oFile.path;

var cFile;
cFile = event.target.getDataObjectContents(sFile);
pa0001.Subform.filecontent.rawValue = util.stringFromstreams(cFile,"utf-8");

Is there anyway to 'decode' excel file content and bind it to a field in AIF?

Thanks in advance

Sagar

Accepted Solutions (0)

Answers (2)

Answers (2)

sagar-acharya
Participant
0 Kudos

Ok I received a reply from OSS that there is no command or script that will convert excel file.

I take OSS words.

sagar-acharya
Participant
0 Kudos

Any help here guys?