The SharePoint Framework (SPFx) is a page and web part model that provides full support for client-side SharePoint development, easy integration with SharePoint data, and support for open source tooling.
Questions tagged [spfx]
975 questions
0
votes
1 answer
JSX element type does not have a construct or call signature
I am trying to get the working in my SPFX application and I am sure I am not getting the class correct
I have tried my code in JS and ran it with npm install and it works fine, but when I try and do it in TS with spfx I get this error:
import *…

Jason_Hough
- 392
- 5
- 31
0
votes
0 answers
React updating props from state
I have a form inside a list.
The list passes a object with a array of topics (another object) on props to the child form, and when I change the values on the state the props values are changed also.
I would like to maintain props in case the user…
0
votes
1 answer
Use SPFx to modify the 'edit form' from a modern document library
Right now I am learning SPFx for SharePoint Online. My customer wants to modify the 'edit form' of a document library in a way that if a user starts typing keywords into the Summary field, predifined keywords are displayed which share the same…

clem995
- 319
- 2
- 16
0
votes
1 answer
Should I rewrite all the existing jquery ajax webparts in Typescript or is it better to inject existing jquery in SPFX?
We are moving from SharePoint 2013 to SharePoint online. We are thinking of migrating existing webparts in 2013 which has jquery - ajax to SPFX client webparts. Now, Do we have to rewrite all the code in Typescript? Can we just inject existing…

Jeevana
- 11
- 3
0
votes
1 answer
Get SharePoint Office 365 data using Client Id
I am accessing SharePoint online list data using the following code but i get the following error.
The remote server returned an error: (403) Forbidden.
The web forms application is running in Azure and uses Azure authentication. I would like to…

user1339913
- 1,017
- 3
- 15
- 36
0
votes
1 answer
Get SharePoint list data using CSOM using a Azure function
I would like to create an API to get the SharePoint list data using CSOM and Azure functions.
This article explains to get the data from SharePoint. But i do not want to put my user name and password into the code.
Is there a SharePoint API that…

user1339913
- 1,017
- 3
- 15
- 36
0
votes
1 answer
Making SharePoint Lookup field multi selection in code with PNP/SP
I am trying to make a lookup field that will allow multiple selections:
ler.list.fields.inBatch(batchCreate).createFieldAsXml(`

Holden1515
- 659
- 2
- 7
- 20
0
votes
1 answer
How to set SPFx DetailList row width?
I'm building a SPFx React webpart using Office UI Fabric. I want to use a DetailList, but it should only be displayed on 50% width on the screen, since I need to display some additional information concerning the selected item to the right of the…

T. Nooytens
- 1
- 1
0
votes
0 answers
SPFx web part is not loading in IE 11
I have a SPFx web part with Knockout framework. Its developed for SharePoint on premises (V1.1.0). Deployed all the Assets in the SharePoint library. Application is working fine in Chrome. But in IE, web part is not loaded in the page. Even I have…

Naveen Prasath
- 539
- 1
- 3
- 23
0
votes
2 answers
@pnp/sp seems to be missing the .get() method
I am running into a strange (and hopefully very simple) issue where the .get() method does not seem to be defined in my spfx project.
This is a typescript 2.4.2 project for creating an spfx webpart for SharePoint 2016 on prem.
The project was…

Chris Nevelos
- 1
- 5
0
votes
1 answer
React Dropzone for SharePoint Framework SPFx
Could anyone please direct me to a working code that uses the React Dropzone npm package that could be used for SharePoint Framework which is using React?
Thank you.

theITvideos
- 1,462
- 2
- 18
- 29
0
votes
1 answer
MS Edge HTTP403 from GetFolderByServerRelativeUrl using httpClient.get in aReact WebPart
I am getting a HTTP403 only in MS Edge. I have tested in many other browsers and the .get works fine. I am creating a React WebPart to be used on our SharePoint OnLine environment. The file I am trying to get is a csv file stored in a document…

Mark
- 803
- 3
- 11
- 21
0
votes
1 answer
JSON data changing after Promise is resolved in React SharePoint Framework web part
I'm making a call to an ODATA API, and the results of the JSON are changing after the promise is resolved.
Code block:
return client
.get(apiQueryString, AadHttpClient.configurations.v1)
.then((response: HttpClientResponse) => {
if (response.ok)…

Randy Slavey
- 544
- 4
- 19
0
votes
2 answers
Button in li element to display more details
I would like to display the modal window with more details when I click on record. I'm using OfficeUI.
My parent component:
public render() {
{
return (
{this.props.items
.map((item:…

J Oderberg
- 75
- 2
- 6
0
votes
1 answer
Sharepoint SPFx ${} replace slash with space in render method
I'm pretty new to spfx client side development model and there is some stuff that I don't understand.
In sharepoint webpart (SPFx) I'm trying to dynamically load an image src, but if I do: src="${item.ImageUrl}" the slashes (/) are replaced by…

user1385416
- 21
- 6