Questions tagged [spfx-webparts]

Technical questions about building and using web parts based on the SharePoint Framework client-side development model.

Filter by
Sorted by
Tagged with
0
votes
1answer
30 views

angular-aad-implicitflow

I see in SharePoint PnP Git repo: https://github.com/SharePoint/sp-dev-fx-webparts/blob/master/samples There is react-aad-implicitflow why not there is angular-aad-implicitflow. Is there any ...
0
votes
0answers
375 views

How to use the reusable components in SPFx projects

I am working in a SharePoint Framework (SPFx) project in Online version. We have created two separate projects, one is main project and another one is common project. The common project will contain ...
0
votes
1answer
182 views

Unable to Send Email from SharePoint Code Behind

I am unable to send emails from SharePoint code behind. I've tried the following code: public static void SendEmail(SPWeb spWeb, string Subject, string message, string ToName, string ToEmail) { ...
0
votes
2answers
426 views

Handlebars with spfx, Module not found

I am trying to use handlebars in a client webpart using these posts: https://n8d.at/blog/how-to-use-handlebars-in-sharepoint-framework-projects-spfx/ https://n8d.at/blog/first-handlebars-web-part-in-...
0
votes
0answers
117 views

How to access a file stored in SharePoint Document library which is Public CDN

I have a sharepoint document library.I have made this library as Public CDN. This library contains some files. Now i m trying to access the files inside SPFX but it doesnt work ? image I am getting ...
0
votes
1answer
596 views

Need help with url and rollup image fields in sitepages using SPFX with REST

I'm new to SPFX and still trying to find my way around. At the moment I'm struggling to access particular fields from site pages using REST. I realize this is a n00b request, but any help would be ...
0
votes
1answer
154 views

Calculated column not provision to List

I have tried to provision a Calculated column to SharePoint using the SPFx but it seems the column is not added to List. It's provision successfully to the Site Columns as well as the Content Type ...
0
votes
1answer
2k views

React State in Property Pane?

While using SPFx with React how do I use state in the property pane to change and manipulate values instead of default properties? Can I add state to the BaseClientSideWebPart? Or is there another way ...
0
votes
1answer
276 views

Correct JSON format to add a user to group using REST POST call in spHttpClient? “Input string was not in a correct format.” error

I am getting an '“Input string was not in a correct format.” error after submitting the following POST call: any idea what I might be doing wrong here? const addUserURL: string = newWeb + `/_api/web/...
0
votes
1answer
931 views

Create a subweb using REST in SPFx: SyntaxError: Unexpected end of JSON input

I am trying to create a classic subweb using a POST REST call in SPFx. Any idea what I am doing wrong here? const postURL: string = `${this.props.context.siteUrl}/_api/web/webinfos/add`; const ...
0
votes
0answers
365 views

How to reference strings.js in SPfX? (Uncaught TypeError: Cannot read property 'STS' of undefined)

I am trying to migrate my code from Classic experience to SPfX. My code is using the SP.UI.ModalDialog, and I have referenced successfully the MicrosoftAjax.js, SP.Runtime.js and the SP.js files in ...
0
votes
0answers
384 views

Error while using @microsoft/sp-dialog in SPFX TS1005

When using Dialog class from sp-dialog, gulp serve throws the error. Created an SPFX project with react framework. installed sp-dialog with the following command. npm install --save in the .tsx ...
0
votes
1answer
587 views

Why doesn't DOM element behave when setting visibility or display with SPFx/Typescript?

code snippets here produce/render expected data and alert box shows [object HTMLDivElement] the div will not hide; same is true using "visibility", "hidden" <p> <input id="...
0
votes
3answers
3k views

getting current logged in user in SP list

I have made one webpart using spfx, on submit button its values are pushing in SP list but in SP list I want user who is currently logged in, its value should come in one of the field of Sp list, how ...
0
votes
0answers
43 views

Interaction with Lists in SPFx

Are there any tutorials which are better than the Microsoft Tutorial for explaining integrating with lists? I've found the one provided by MS to be outdated and skips actually doing anything with ...
0
votes
1answer
1k views

WebParts keep loading untill I scroll down the page or perform a zoom

environment:SharePoint online;Sharepoint Framework; Programming languages:TypeScript During page loading, sharepoint custom web part keeps on loading Nothing does change untill I scroll down the ...
0
votes
1answer
298 views

SPFx -Error when use last version of Office-UI-React with SPFX 1.4.0

I want to use last version of Office-UI-React with SharePoint Framework v 1.4.0 with TypeScript Version 2.2.2. When i install last version office-UI-React have following error:
0
votes
1answer
741 views

Get value from Person or Group Type field in SPFx

In my Sharepoint list I have one column of person or group type, I want to fetch its value on my webpart. I have even tried using $expand to get that column value but still not getting. In my webpart ...
0
votes
1answer
2k views

How do I get data from sharepoint list in webpart in spfx

I have make one web part in spfx, I am able to fetch values of all columns of sharepoint list except one which is of type person or group, In this column there are multiple names I want to fetch all ...
0
votes
0answers
329 views

Why don't the SPFx web parts below the first one load on a page?

Is there a way to make sure all the content, or at least the first few web parts on a page load right away? I have a SharePoint Online classic view page that has four different custom SPFX web parts. ...
0
votes
2answers
174 views

Webpart visible in edit but disappears in preview

UPDATE I've tested on different tenants, it seems to only work in those that isn't a first release tenant. It doesn't even work with the default built-in webparts that have been served by microsoft. ...
0
votes
0answers
447 views

SPfx gulp-serve command not launching the browser page in local host

I have created HelloWorld web part from this tutorial. The command yo @microsoft/sharepoint and gulp trust-dev-cert executed successfully. After that, I executed gulp serve command which shows below ...
0
votes
0answers
194 views

After change regional settings, pages with SPFx webparts gives unexpected error has occurred

After change regional settings in SharePoint 2016 On-Premise server to Bulgarian, Macedonian оr other Locale I have following error: Error from log file by corelation ID is: Message : System....
0
votes
1answer
145 views

SPFx, provisioning the DisplayName

I'm trying to provision a sitecolumn in Office365. I'm using the following syntax: <Field ID="{40f80a77-d528-45ae-aafe-e7b15ffa8e6a}" Name="LF_Company" DisplayName="Company" ...
0
votes
0answers
532 views

SP16 - Button click refresh page when i Use PnP-Core-JS

My webpart is for SP16. I use code from this sample and when i click button in webpart, page is refreshed. This is code for Create Item: private createItem(): void { this.updateStatus('Creating ...
0
votes
1answer
267 views

Trying to Deploy the React Multi-page Sample

Looking at the REACT-MULTIPAGE sample, I have set up an MS Teams site to test this and created the custom poll list. I have run through the next set of steps as far as this part in the readme from ...
0
votes
1answer
335 views

Unauthorized Microsoft Graph API Add member in group

I am using Microsoft Graph API in my SPFx website. I can successfully get accessToken using ADAL.js. I can create user, get users, get groups but when i am trying to add members in group it throws ...
0
votes
1answer
532 views

Can't upload a .sppkg add-in to the Office Store

I am trying to put an add-in on the Office Store, under the SharePoint Add-Ins section. It's a simple SPFx webpart. The file is a .sppkg (SPFx package), but the store is demanding that my add-in ...
0
votes
2answers
468 views

Sharepoint framework .sppkg webpart on-premises app cataglog issue

I am deploying hello-world app to an on premises app catalog. I am creating the app with SharePoint framework after building and running gulp package-solution. When i upload the .sppkg from SharePoint/...
0
votes
1answer
953 views

Angular 2 Routing in SharePoint Framework - SPFX

Using Angular.IO site's Routing example , I created a simple SPFX webpart with two components Dashboard and HeroDetails. When I try to run it through SharePoint site I see following error. Attaching ...
0
votes
1answer
88 views

Unable to access 'https://github.com/SharePoint/sp-dev-fx-webpart

Ok tried the ealier versions of spfx and had no issues. Thought I would try RC0 with samples but struggling to clone locally, both at work on home ( no proxy) on my dev laptop. Any ideas λ git clone ...
0
votes
0answers
185 views

Loading indicator for two different SPFx webpart in Same Classic Page or Workbench.aspx

We have developed two webpart and both fetching the data from Term store so it take some time to load the data into the webpart. if i add only one webpart to Workbench.aspx or Classic pages it ...
0
votes
1answer
370 views

Access denied in Workbench.aspx

I downloaded the workbench.aspx file and uploaded to office 365 SharePoint Online Developer site under "Documents" document library. When I try to open the same, I page does not load ...
0
votes
0answers
2k views

cannot find module (typescript)

I am running an easy Sharepoint Framework project in Visual Studio Code: I have this structure: My files are as follows: ComplexCalculator.ts export class ComplexCalculator { public sqr(v1: ...
0
votes
2answers
263 views

Client Side (inline IDE) editor/app for editing (.js , .json, .css, .html) files in a Document Library

We more and more store data as .json files in a Document Library. Instead of (re)writing our configuration front-end, I would like users to edit the bare .json files. (and while we're at it, all ...
0
votes
1answer
388 views

Tutorial 5 Step 5 loading error: unable to load web part script resources

When testing the jquery webpart, got loading error:
0
votes
0answers
1k views

SPFx create New Experience UI List/Library View with my own content

Been playing with this SPFx for some hours now, done the Tutorials, and.. I am not impressed. I was expecting SPFx to be a library so that I could create New Experiences (Library View, List View) by ...
0
votes
1answer
29 views

How to list all sites that contain a custom webpart in sharepoint online?

I have made several web parts from SPFx and deployed it non-tenant wide. There are multiple sites that I have deployed these apps too, but not all sites contain all of them. Is there some api that I ...
0
votes
1answer
233 views

RC0 Build webpart is not listing while adding to classic pages

Until drop 6 I am able to Spfx web parts into sharepoint classic pages. I tried to create new spfx webpart using RC0 release and deployed through app catalog. I installed the spfx app into site ...
-1
votes
5answers
8k views

SPFX Error loading webpart

I'm trying to run the SharePoint framework example from GitHub SharePoint/sp-dev-fx-webparts and I'm having different behaviours between my local workbench and the SharePoint Online workbench in my ...
-4
votes
1answer
118 views

Is there any possibilities that getting documents that's been shared with the current user!

Any search API that shows shared with me documents been used with SPFX

1
16 17 18 19
20