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.

Filter by
Sorted by
Tagged with
0
votes
0answers
11 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 ...
1
vote
1answer
24 views

Home page get blank when spfx webpart added

I have one custom SPFx webpart which fetches the event from calendar. the webpart is working fine but when I place the webpart on home page communication site. the home page shows blank. If i add the ...
1
vote
0answers
21 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
40 views

SharePoint Framework Web Part data storage

I have some JSON that is populated when a user sets up a web part, the JSON is used as the config i don't want to display this data to the user and I cannot see any way to simply hide a multi line ...
0
votes
1answer
27 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 ...
1
vote
1answer
37 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 ...
0
votes
1answer
52 views

How make accordion detail list with UI fabric react

I start with UI Fabric react; I am developing a FAQ; I use for that a list; but the result is not good; I want to do something looks like an accordion, where we can see the question as a header and ...
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 ...
1
vote
1answer
50 views

Display value of lookup fiels on webpart

I am beginner on SharePoint framework and with TypeScript. My problem is I have a list that contains a lookup type field "categorie", When I try to get the records from the list with rest API, the ...
1
vote
1answer
75 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 ...
0
votes
1answer
64 views

Sharepoint Framework doesn't run jquery in .js file

I'm starting out with Sharepoint framework and at this point I just want to play around and get familiar with the concepts. I've created webparts with the Yeoman generator and launched them in the ...
1
vote
1answer
186 views

PowerApps and Flow vs SharePoint Framework [closed]

I tried doing some research on this online, but unfortunately all I could find was articles on how awesome PowerApps and Flow are. I'm curious, in the world of no-code / low-code solutions, where does ...
0
votes
2answers
54 views

SharePoint Online button to create a new folder structure in a document library

I would like to add a button that appears on a SPO Modern Document Library that states "Create a new folder structure". (see below image). When clicked I would like that button to: Prompt the user ...
0
votes
1answer
45 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
86 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 ...
2
votes
1answer
30 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 ...
0
votes
0answers
53 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
129 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
1answer
25 views

Use search API to find items that begin with a specific letter

I am Developing a SharePoint Extension web part for O365. The purpose of the web part is to allow the user to click on a letter of the alphabet and then through the search API return all the items ...
0
votes
1answer
138 views

Reading Sharepoint List in SPFx - ForEach not working

I have no idea how to read Sharepoint List Data in SPFx one by one. JavaSript console returns me an error: Uncaught (in promise) TypeError: item.forEach is not a function. private ReadAllCountries(...
0
votes
0answers
22 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
123 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
1answer
257 views

SPFx Extension: wait for fetching data before rendering header

I am currently developing a SPFx Extension (Application Customizer). I am relatively new to TypeScript (C# developer) and I can't find my error. I have the following onInit method: @override ...
0
votes
0answers
58 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'...
1
vote
0answers
265 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 ...
0
votes
0answers
32 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
1answer
68 views

Set defaultvalue of sp-pnp-js created boolean field

I'm unable to set the default value to false of my boolean field called Done pnp.sp.web.lists.add("Todo","").then(() => { pnp.sp.web.lists.getByTitle("Todo").fields.add("Done","SP.FieldText",{ ...
1
vote
1answer
326 views

Problem with rendering a React component in another component for SPFX

This is my first post here, I guess :) I am writing because I have a task to make a Shopping app which should be made in SharePoint Framework and use React as a framework. My current problem is ...
0
votes
0answers
21 views

Add developer name in Sharepoint Framework Webpart manifest

Can you add developer name in manifest.json on sharepoint framework?
2
votes
1answer
149 views

MSGraph Permissions

I am trying to allow an app to get a user's manager. According to the documentation I need User.Read.All permission: So in my SPFx, I added the request: "webApiPermissionRequests": [ { "...
3
votes
1answer
400 views

Send an email with SPHttpClient

I'm working on a web part for SharePoint 2016 on-prem and I want to send an email from the current user. I cannot use @pnp/sp library as it's not supported with TypeScript 2.2.2 and I'm unable to ...
2
votes
1answer
144 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
2answers
50 views

Sharepoint Framework - custom webpart @ Sharepoint Online - app refers to localhost

I need to create a simple app using Sharepoint Framework - app will generate iframe with body taken from external vendor. Normally in regular HTML website I would just put tag in the head section but ...
1
vote
1answer
161 views

Sharepoint 2013 sweetalert2 ie doesn't work

I was making a small notice board for users with sweetalert2. it is working well chrome. Testing with little script trigger button its working good chrome but still not showing ie. I have to say my ...
3
votes
1answer
746 views

Create document set with REST API in SharePoint Framework

I'm looking for a way to create a document set in my document library from within SPFx web part. I'm using @microsoft/sp-http module to create HTTP requests. Do I need to manually create some ...
0
votes
1answer
155 views

Add an item to a SP list with a managed metadata column in SPFx webpart

I've a list in SPFx with a column type of Managed metadata. Now I'll add an item in that list with a web part. But how can I do this? import { TaxonomyPicker, IPickerTerm } from "@pnp/spfx-controls-...
1
vote
1answer
138 views

Selecting a date in 2nd date picker clears the 1st date picker (UI Fabric React)

I'm making a SPFx webpart and I've 3 date pickers. See images below. First I start with 3 empty date pickers (oké they looks good) Then I select a pick up date (no problems so far) Then I select a ...
0
votes
0answers
236 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 ...
1
vote
0answers
227 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 ...
3
votes
1answer
82 views

Is it possible to hide a column from a user group using SharePoint Framework Extensions?

Would this be possible using a field customizer? I haven't used SP extensions yet so if anyone has good resources/documentation that would be appreciated.
1
vote
1answer
159 views

Replace default “new” action to custom created command SPFX

I've created a new extension to SPFx to create a new item for a list. This contains more checks then the default action, because some fields depends on an other field. My question is now how could I ...
0
votes
1answer
33 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 ...
2
votes
0answers
62 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 ...
0
votes
0answers
38 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 ...
0
votes
1answer
257 views

How to add checkboxes to propertypane dynamically

I have a dropdown on my property pane which i populated with sharepoint lists. What i want to do now is to add the columns(fields) of the list(selected on the dropdown) as checkbox(on the property ...
0
votes
1answer
37 views

Can i restrict a App (which is deployed to our app catalog) from being added inside certain site collections

I have developed a client-side web-part by following steps simialr to those mentioned on this link Deploy your client-side web part to a SharePoint page (Hello World part 3) then i deploy the web ...