Questions tagged [sharepoint-framework]

The SharePoint Framework (SPFx) is a page and part model that enables client-side development for building SharePoint experiences. It facilitates easy integration with the SharePoint data, and provides support for open source tooling development.

74 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
9
votes
0answers
1k views

SPFX Provision list with data

I am trying to use the SharePoint Framework to provision a list with some default data, I managed to get this working using the following elements.xml and custom schema.xml. This worked no problem ...
3
votes
0answers
1k views

“Error: Token renewal operation failed due to timeout” in adal.js SharePoint Framework React

I have developed a webpart to get Azure users using SharePoint Framework React with graph api. But in Adal.js file getting following error: Error: Token renewal operation failed due to timeout I ...
3
votes
0answers
682 views

SPFx Custom Property Pane save property save

When building a SharePoint Framework web part - How to Save Custom Property Pane value? I have created a multiselect field for Property Pane, but not able to retain the values when refresh the page. ...
2
votes
1answer
35 views

Can I work with Sharepoint framework without access to Github?

According to Set up your SharePoint framework development environment, I need to install node.js and then use its command to download further package (yo and gulp) from github. I installed node ...
2
votes
1answer
161 views

Using jQuery plugins in SPFx web part

I'm looking for a reliable way to implement jQuery plugins into my SPFx web part (targeting SharePoint 2016 on-prem). I have jQuery installed with npm install and imported with import * as jQuery from ...
2
votes
0answers
67 views

SPFX WebPart: Getting HTTPS certificate ERROR in IE11

Getting HTTPS certificate error in IE11, webpart is working fine in chrome, firefox, and Edge but NOT in IE11. The webpart is just displaying some simple list data in dropdown component, and nothing ...
2
votes
1answer
164 views

Create button to change view in a list SP online

I have a Modern sharepoint online list with 2 views. Is it possible to create 2 button to change the view "on the fly"? either json or via ClientSideExtension.ListViewCommandSet.CommandBar or is there ...
2
votes
0answers
653 views

Sharepoint Framework Dialog, Modal and Panel not working

I have created a web part in react js which contains a Microsoft office UI fabric control "Modal" and it pop outs on a button click. This feature works fine on my local workbench but whenever I ...
2
votes
0answers
214 views

SPFx: Dropdown from 'office fabric ui react' is not working in yo sharepoint generator's latest version 1.6.0

I have build a web part using SharePoint framework with SharePoint generator version 1.3.4 with dropdown multiselect=true in UI and then updated it to version 1.6.0 now the dropdown is not working. (...
2
votes
0answers
54 views

SharePoint Framework 1.6 MSGraphClient Error

I receive the following error trying to call Microsoft Graph using MSGraphClient in a new SharePoint Framework 1.6 Web Part. The requested operation is part of an experimental feature that is not ...
2
votes
0answers
799 views

Sharepoint React Framework , office ui fabric css not getting applied on components

This is the current version of office ui fabric referened in my package : I am using sharepoint react framework and have used List component : Code Link : https://github.com/OfficeDev/office-ui-...
2
votes
0answers
60 views

Is it possible to create a SharePoint hosted list by SPFx?

I need to create a list inside the app which I can remove it when I delete the app from the site.
2
votes
1answer
439 views

Hosting your SharePoint Framework solution for on-premises deployment

does anyone knows how to Host SharePoint Framework solution for on-premises deployment ? i have created a new site for Apps Catalog under my web application in Central Administration, also i have ...
2
votes
2answers
473 views

SharePoint Framework onchange method not called

I'm new to SPFx and doing this plain Javascript web part to kick off things but have hit a read block. I can't seem to figure out on how to properly call the oncahnge method on a search input: <...
1
vote
0answers
22 views

How to build in-place editable modern webpart?

I'm trying to build a webpart that display tiles with custom data. I'm trying to mimic the behavior of the page banner webpart that allow to edit each tiles directly within the webpart, each tile ...
1
vote
1answer
41 views

How to Print a Document from the Modern Library in SharePoint Online?

I have a certain use case of being able to print a document directly from the modern library using a button. Almost a one click solution. I had a quick look around and found ways to print a modern ...
1
vote
1answer
120 views

SHAREPOINT FRAMEWORK - REACT JS alert on Page Load

I am new to SharePoint framework and React JS. I have build a basic Web Part with CRUD operation using React JS. I wanted to show drop-down(html select) value on Page Load in an alert. I am able to ...
1
vote
0answers
302 views

SPFX- Lookup column value

I'm retrieving data from a SharePoint list and I'm facing some issues while getting values from lookup column. I was able to successfully pull in the 'Title' column which is a single line of text, but ...
1
vote
0answers
247 views

Set TaxonomyPicker with initial values from term store SPFx

I've created a command set for creating and editing a new product and save it into a SP list. That list uses a term set for the categories. When a product must being edited, the ProductEditor ...
1
vote
0answers
47 views

SPFX Angular Element with UI-Router not displaying data

Iam testing Angular Element with SharePoint Framework (SPFX) Webpart, as Andrew Conell has described in his Blog Every thing is working as asspected, i have added UI-Router in webpart just for ...
1
vote
0answers
225 views

Gulp Serve Error: Error: EISDIR: illegal operation on a directory, symlink

I am following the instructions in this guide. https://docs.microsoft.com/en-us/sharepoint/dev/spfx/web-parts/get-started/build-a-hello-world-web-part The only difference is that I installed yo ...
1
vote
1answer
250 views

sharepoint framework call async function

Help please, I'm trying to call the function to get the number of comments from the modern page, but I can not correctly display the result in the html code: private async getSitePageComments(id: ...
1
vote
0answers
119 views

Cannot debug SharePoint Framework command set extension in Visual Studio Code

As mentioned in this guideline I am able to get debugging in VS Code working for a SharePoint Framework web part: https://docs.microsoft.com/en-us/sharepoint/dev/spfx/debug-in-vscode However command ...
1
vote
0answers
202 views

REST API call Orderby - JSON changes my order!

So the below function, gets data from a list in a certain order - by SortOrder column. If i go to the url in my browser and run it the order is as expected, however the output (JSON) seems to then ...
1
vote
2answers
811 views

Call custom javascript before loading any SPFX webparts

I have a requirement, where i want to fetch certain properties from user profile.For this i have created a file which fetches data from user profile and store in global variable. I was able to add ...
1
vote
0answers
78 views

SP16 - After install webpart missing under development folder

When i install SPFx webpart in my on-prem server. In Developer site i want to add this webpart in page. Folder Under development is missing.
1
vote
1answer
226 views

SPFx - How to protect and minify my output bundle.js

When i deploy my solution.sppkg i want to protect my output bundle js to avoid js injection? How to minify bundle.js with gulp task? How to do this?
1
vote
1answer
510 views

SharePoint Framework MS github samples typescript errors

Using the MS github SharePoint Framework samples- I am seeing lots of typescript errors when running gulp serve [18:04:39] [typescript] **Using custom version: 2.0.10** <br> [18:04:39] Finished ...
1
vote
0answers
588 views

Embedding SFPX (SharePoint Framework) webparts in an iframe

Wondering if others are having this issue. I have an spfx webpart page that I'm embedding in an iFrame for one of our internal apps. The webpart page on its own is perfectly fine, as soon as we put ...
1
vote
0answers
344 views

SASS/SCSS sourcemap on sharepoint framework webpack

Is there any way load the sass/scss file as the sourceMap in dev mode? I understand that sharepoint framework is using webpack which transpiles all sass/scss files into css then render it within the &...
1
vote
1answer
554 views

SharePoint Framework replacing SharePoint Hosted Add-ins?

I am bit confused on how SharePoint Framework fits in with the two hosting models (SP-hosted, Provider-hosted). When I go to this tutorial they suddenly call it as client side web-part, and it seems ...
0
votes
0answers
24 views

CSS classes added in project.module.scss not showingUp in my .tsx file in SPFx Project

Currently I started working on React SPFx webparts and wanted to add some new CSS. I added some styling to classes in Project.Module.scss. But Now when I am adding this class names in render() method ...
0
votes
1answer
28 views

Is there any way to get the URL of a yammer profile user's homepage via API?

I am trying to find a way to get the link that takes you to the Yammer user's homepage. I see that the Yammer user's homepage has some kind of ID in the URL. I developing an app that will show users ...
0
votes
1answer
38 views

How show a value when clicking on a table row

I am a beginner with sharepoint and typescript, i have dynamic table, and i want to get value of row when i click on private _renderList(items: ISPList[]): void { let html: string = '<table ...
0
votes
1answer
52 views

Adding data to window object -

In the webpart I am currently preparing using SPFX I need to assign some user data into window object: (<any>window).userDetails = { displayName: this.context.pageContext.user.displayName,...
0
votes
0answers
105 views

SPFx CustomAction sequence / default action

My goal is to create an extension for Sharepoint Online that adds a context menu entry to the top of the context menu for specific files in Document Libraries and lists and is the default action for ...
0
votes
0answers
56 views

Breadcrumb Navigation in SharePoint Online for multiple Modern communication site & Team site using spfx code

I am trying to create breadcrumb navigation for communication site in SharePoint online using SPFX, But i have multiple communication site, how can we make breadcrumb navigation for different ...
0
votes
1answer
148 views

react-search: The type definition `index.d.ts` does not exist. Create one and try again

I am new to SharePoint and I'm trying to deploy a modern Search Web Part following the instructions here sp-dev-fx-webparts/samples/react-search/ When I run tsd install on the command prompt, it ...
0
votes
0answers
34 views

Yeoman generator produces an old version of SPFx

I have Yeoman generator (@microsoft/generator-sharepoint) version 1.8.2, I can verify this by running: npm list --depth=0 -g .. When I try to run yo @microsoft/sharepoint , I noticed 2 things: The ...
0
votes
0answers
31 views

Convert SPFx Web Part to 2019 version

I made a relatively simple web-part using the SharePoint online only option but it turns out this will need to be deployed to SharePoint Server 2019. I can't find documentation on how to do this, can ...
0
votes
0answers
8 views

Error in Setting up development environment for SharePoint Framework - EINTEGRITY

I am trying to setup the development environment for SharePoint framework as per the procedure mentioned in below article. https://docs.microsoft.com/en-us/sharepoint/dev/spfx/set-up-your-development-...
0
votes
0answers
23 views

Best practice to provision assets (e.g. custom lists) alongside a SPFx tenant-wide Web Part?

Microsoft says that it's not possible to provision assets with a Web Part which is deployed tenant-wide (See here) But I need to develop a Web Part which will be available on the SharePoint Online ...
0
votes
1answer
141 views

SPFx web part: wait for fetching data before rendering header

I already asked this question regarding SPFx extensions. But now I have the same problem I had in that question, but for a SPFx Web part. I use the exact same _getUserInformation() method as ...
0
votes
0answers
15 views

How to passd acordion a properties in SPFx

I creating acordeon from this article: https://docs.microsoft.com/en-us/sharepoint/dev/spfx/web-parts/get-started/add-jqueryui-accordion-to-web-part But there are two files. I cant pass properties ...
0
votes
0answers
65 views

Connect custom web part to a library web part

I'm creating a custom web part using SPFx and I'll to connect it to a list. The web part I make shows the details of a product. The library I'll connect contains all manuals of the all the products. I'...
0
votes
0answers
35 views

Sharepoint framework - gulp serve error

Testing development environment on a Windows 7 machine - works fine on a Windows 10 machine but getting this error in W7 (in workbench): Error: EPERM: operation not permitted, symlink 'H:\...
0
votes
0answers
21 views

Add developer name in Sharepoint Framework Webpart manifest

Can you add developer name in manifest.json on sharepoint framework?
0
votes
0answers
252 views

Connect SPFx webpart and SP list using dynamic data

I know a SPFx webpart can be connected to another SPFx webpart using PropertyPaneDynamicFieldSet and PropertyPaneDynamicField. My question is can a webpart being connected to a SP list? I'll connect ...
0
votes
1answer
37 views

Issue when debug and publish an extension created with SharePoint Framework Version 1.7 on a SharePoint Server 2019

I create an extension with SharePoint Framework 1.7 with yo @microsoft/sharepoint by selecting the options as indicated below: SharePoint 2019 onwards, including SharePoint Online. Use the current ...
0
votes
0answers
47 views

Sharepoint SPFx active toggle in list view

I'm new with SharePoint Framework and I want to achieve something like this: Github - React Field Toggle This solution is for SPFx v1.3 and in my environment (SharePoint Online) it's not working even ...