question

Toriyama avatar image
0 Votes"
Toriyama asked YiLu-MSFT edited

How to Use datatable with Export data in SPFX?

I already use the datatable, but I am not able to use the option to export from it.
In this link https://datatables.net/extensions/buttons/examples/initialisation/export.html we can see this function.

Here http://reshma-ustad.blogspot.com/2019/12/export-sharepoint-list-data-in.html we have an example, but I couldn't reproduce 100% in my solution without Javascript Framework.

Any suggestion?

Thanks

office-sharepoint-server-developmentsharepoint-dev
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @Toriyama ,
I am currently doing some research on this issue, will let you know as soon as possible

0 Votes 0 ·

1 Answer

RaytheonXie-MSFT avatar image
0 Votes"
RaytheonXie-MSFT answered YiLu-MSFT edited

Hi @Toriyama
The first article you provide is used in extension. So the function can not be used in no javascript framework. You need to create an extension to load it. Could you provide more details about the errors in second sample and the steps to reproduce your error for further test?


If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.




· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi,
I can already use the datatable with Export in SPFX without JavaScript Framework.
I will post this later.

Thanks

0 Votes 0 ·

Hi @Toriyama
Thanks for your time in advance. Glad that you found the solution to this problem.
Could you share the answer with us? It would be helpful to others who have similar issue in the future.

0 Votes 0 ·