Skip to Content
avatar image
Former Member

Upload excel file on a button click

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

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Oct 07, 2008 at 05:32 AM

    Any help here guys?

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 10, 2008 at 11:26 AM

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

    I take OSS words.

    Add comment
    10|10000 characters needed characters exceeded