Forum Discussion
Rich_P423
Microsoft
Apr 20, 2020SharePoint Framework Extension
Hi Everyone,
I'm trying to get familiar with the SharePoint framework and particularly with extensions. My target platform is SharePoint 2019 on-premise. Following the example from this link:...
Sudharsan K
Apr 21, 2020Iron Contributor
Hi,
Let us know which version of yeoman generator are you using to create the extension. Also, please check the Id of the component and the value of the custom actions in the above url. Both should be same. Also let us know whether you are receiving any error in the browser console.
Let us know which version of yeoman generator are you using to create the extension. Also, please check the Id of the component and the value of the custom actions in the above url. Both should be same. Also let us know whether you are receiving any error in the browser console.
Rich_P423
Microsoft
Apr 21, 2020Sudharsan K Thanks for following up and responding so quickly. A colleague of mine directed me to these 2 links:
https://github.com/SharePoint/sp-dev-docs/issues/3443
https://github.com/SharePoint/sp-dev-docs/issues/1645
The Dialog.alert function does not fire. If you replace it with just the javascript alert it works
//Dialog.alert(`Hello from ${strings.Title}:\n\n${message}`);
alert(`Hello from ${strings.Title}:\n\n${message}`);
The dialog methods come from "@microsoft/sp-dialog", using version 1.4.1 since I'm targeting SharePoint 2019.