Nov 23 2020 06:41 AM
Hi all,
I would like to know if is possible to develop spfx Sharepoint online webpart with similar behaviour which is in standard SharePoint list (document library) view webpart for example - when data in underline list is updated web part is automatically updated without any page reload.
I know about this possible solutions:
1) query list in intervals and check for update
2) Use webhooks on list with combination with custom Azure Functions -> SignalR or something similar.
Is there any simple solution how for example sign for webhook directly in webpart.
Thank you.
Tomas
Nov 23 2020 06:51 AM
@Excal730 Hi, if your Web Parts are on the same page you can use "Dynamic Data"
https://docs.microsoft.com/en-us/sharepoint/dev/spfx/dynamic-data
Nov 24 2020 12:48 AM
Interesting hint about dynamic-data for some different scenario I have. But for current one List with data is just in background (not on same page :( )
Nov 24 2020 08:11 AM
@Excal730 Do you need it for Libraries? Check out notifications.
https://docs.microsoft.com/en-us/sharepoint/dev/spfx/subscribe-to-list-notifications
Nov 25 2020 12:46 AM
@Beau Cameron nice this is exactly what I was looking for but unfortunately for List :( ... so at least I will put it to my tool-shelf for some other scenario. :)
Will be something like this simple possible in future with Microsoft fluid? Scenarios which I have seen until now are more about multiple client connected directly .. not thought some DB/List
Any thoughts ?
Nov 25 2020 05:49 AM