Skip to Content

SDK Component to export table to Excel


I created a button component that you can use to export any table inside your application, all you have to do is include it and give the name of the table you want to export.

First add the button and the table you want(could be the crosstab or any SDK component you developed)


On the component properties, you must type the name of the table you want to export.


Test it.


Here is the excel generated, none of the formatting is carried over, but it is a start.


Here is the code.

olafecorcam/ · GitHub

Let me know what you think, and any improvements you might think of.



You must be Logged on to comment or reply to a post.
  • Hi Leandro,

    Nice example of an application of the SAPUI5 handler type and a clever approach for programmatically accessing the data of another component from within the SDK using DOM method calls.

    Thanks for sharing,


  • This is great stuff 🙂

    I was doing a similar one to export charts as an invoked PNG download and was gonna do something like this, too - but now I don't have to!


  • Very nice!

    One question, the export works fine in chrome but not with IE. Just want to make sure if someone else has the same problem or if it's my setup somehow?


    Max Rosén

    • Hi,

      I just tried it on IE, and it does not work at all. It goes throught all the code, but it just does not do anything at all.... you've gotta love IE.. love love love...

      I'm a little swanped right now, but I'll take a look at this later.

      Can you try running it inside BO LaunchPad, and not locally?

      The guy that provided me with the export function said that the UT8 must be set for it to work, and since we cannot do it locally on DS, and the launchpad already have it there, maybe it will work.



      • Yeah I had a similar base-64 encoded approach, but with generating a PNG.  Worked in Chrome and does nothing in IE.  I think this is just a browser issue, which shouldn't surprise anyone, LOL.

        I was really hoping to see the day where we could stop bouncing MIME creation off a server to instigate a file download, but it looks like HTML5 cannot solve all our problems just yet.  Probably also why vizPacker for Lumira only works in Chrome, too.  Same issue, but with a JS-created .ZIP in that case.

    • Hey,

      Dimitry unfortunately I don't have it with me or even the project loaded on a workspace to generate it..

      In a near future I'll have to get back to DS, I'll be able to do then. Sorry about that.



    • Ali Mohammed Al Saleh,

      How are you today?

      Which browser are you using? Unfortunately this does not work on IE and I had no time to test it anymore. If it's on chrome, can you look into the console and send me what it says in there?

      Just make sure the property component ID is set to the same name of the table you want to export.