cancel
Showing results for 
Search instead for 
Did you mean: 

Export Table data on click of a button

Former Member
0 Kudos

Hi All,

I have a requirement where i have to export the table data to excel sheet on click of a button.

I am able to export the table data into excel on click of a URL using the below method.

wdContext.currentContextElement().setURL(cachedResource.getURL());

I need to download the same using click on a button..

Please help.

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

hi

You have to create action for the button as other guys said

Follow this step by step tutorial to export data to excel sheet .

http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/edc2f3c2-0401-0010-8898-acd5b6a94...

hope you get the result

Best regards

suresh joshi

Former Member
0 Kudos

Hi ,

what Our friend Robin told is the right .

just creat an action to button and in the action wrtite the saem method whihc u used for linktoaction UI .

below link migt be helful to u .

[http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/6603] [original link is broken] [original link is broken] [original link is broken];

Regards,

Govindu

Qualiture
Active Contributor
0 Kudos

Hi Rahul,

I'm not sure if I understand your requirement correctly, you need to set the value attribute when a button is clicked?

Add a button to your view, and create a method for the onClick event

In this method, add the same code for when clicking the url