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
2answers
17 views

how to Migrate code (Visual Web part code) in SP 2013 On Premise into SharePoint framework [closed]

How to migrate code (Visual Web part code) which is written in SP 2013 On Premise into SharePoint framework (React JS)
0
votes
0answers
13 views

Tag Picker in SPFx

I am trying to use the FluentUI Tag picker on https://developer.microsoft.com/en-us/fluentui#/controls/web/pickers for one of my projects Being a newbie , I am experiencing challenges implementing ...
0
votes
1answer
33 views

Getting Invalid hook call Hooks can only be called inside of the body of a function component with SharePoint Framework Template

I get this sp-webpart-workbench-assembly_default.js:26401 [1599066762186][OtherGlobalError.window.onerro] Invariant Violation: Invalid hook call. Hooks can only be called inside of the body of a ...
1
vote
1answer
35 views

SharePoint Online Workbench layout much different from deployed .sppkg webpart - Using React

I'm using SPFx/React to create a simple custom form. Using Fluent UI grid, controls, etc. and it looks fine in the dev workbench area, but as soon as it's deployed the layout is completely ignored. I ...
0
votes
1answer
71 views

SPFx app not showing up in the webpart list

As I am new to SharePoint Framework, I am trying to update an existing web-part (updated the version in package-solution.json). Updated .sppkg file in app catalog (overwrite), shows new version number....
0
votes
2answers
48 views

Unable to remove left navigation from a SharePoint Page

I have a SharePoint Online page created with a template, which I cannot remove the left navigation pane from. (I can edit the list of links, but I want to remove the whole pane completely). Ideally I ...
0
votes
2answers
52 views

How to filter the retrieved items using a pnp-js-core REST call to a SharePoint list

As I am new to Sharepoint framework , I am trying to filter the retrieved list items from sharepoint list. Please find below code: pnp.sp.web.currentUser.get().then(function(res){ var userEmail = ...
0
votes
1answer
20 views

How to pad a number with leading zeroes using No javascript framework version in SPFx webpart?

As I am new to Sharepoint Framework, I am trying to generate request ID for the request form using the pad function for adding leading laeding zeroes using No javascript framework version in SPFx ...
1
vote
1answer
14 views

Error “This tab is not supported on your mobile” on adding webpart to Microsoft Teams when login through mobile

I have synced the spfx webpart with Microsoft Teams, it is working fine on the system but when trying to open the tab through mobile it is giving me an error "This tab is not supported on your ...
1
vote
1answer
51 views

How to use people picker control using sp-pnp-js( Pnp-JS-Core) library and save users selection in Person or Group type column in Sharepoint List?

As I am new to Sharepoint framework, I wan to know how can I use the people picker control using sp-pnp-js library and save the users selection in Person or Group type column in Sharepoint List.... I ...
0
votes
1answer
46 views

SharePoint framework to sync network folder

Can I use the SharePoint framework to synchronise files from a network folder to a document library? If not the framework is there a way to host some service that will monitor a network drive and ...
1
vote
1answer
40 views

Getting warning messages : Warning - [sass] The local CSS class 'min-chart' is not camelCase and will not be type-safe

I am using third party css in SPFx. When I am building it, SPFx is showing me lots of warning messages : I am using Windows 10 / SPFx 1.11.0. Please let me know how to disable these warning messages. ...
1
vote
1answer
30 views

Configurations in SPFx Extension for CommandSet, Application Customizer and FieldSet

I have created a solution for Sharepoint Online which needs some confiugration like clients website URL. we are using all the three types of extenstion Command set Field Set Application Customizer I ...
0
votes
0answers
4 views

Notify sharepoint about changes of state of my react webpart so it serializes them

I'm developing a webpart in react that lets me position its children by drag end drop. It will not be as user friendly to set it up using Property Pane because the user won't see it the same way as it ...
0
votes
1answer
10 views

What is the purpose for App URL for on-premise SharePoint?

We are using SP2016 on-premise. Patch is deployed so that I can work with Spfx. I followed this MS document (Configure an environment for apps for SharePoint Server) to configure any App domain ...
0
votes
1answer
54 views

Is SPFx client web part durable? Is this good approach to develop web pages to publish in SharePoint online (Office 365)?

I have some dynamic pages in my intranet website (CRUD operation plus search/filter). I have office 365 SharePoint online version. I want to develop client web part using reactjs and restAPI to work ...
0
votes
1answer
39 views

REACT warning when trying to render table

I am new to REACT and I am trying to render my SharePoint list data in a table onto a SharePoint page. I am able to render successfully but then I get the following warning in the console. react-dom....
1
vote
2answers
27 views

How do I develop a completely custom portal/website that has rich designs in SharePoint?

I am required to develop a fully custom knowledge management portal in SharePoint - where different team members in a project can login, ask directed questions, edit their profiles, contribute ...
0
votes
0answers
6 views

workbenchInit.js

I am looking to contribute to fix some code in workbenchInit.js browser IE11 Document mode is set to IE11 and does not solve the issue. REF:https://github.com/SharePoint/sp-dev-docs/issues/2668 ...
0
votes
0answers
368 views

How to best implement pagination for a spfx web part displaying a list of links?

I have a web part that displays a filtered list of links based on the logged on users profile properties. Its working well, but I cannot work out the best way of adding pagination. The list is never ...
0
votes
0answers
19 views

How to print the selected value of Dropdown

I would like to know if there is a way to print the selected value of a Dropdown menu that is inside the Property Pane in SPFX. Like, in my case, how to make it print with a console.log "Ascending" ...
1
vote
1answer
37 views

Application Customiser doesn't work on SharePoint homepage 2019 on-prem

I have a very basic application customiser that adds a custom css file to the page, hiding certain elements like the "Get the mobile app" button. The app is installed in the mysite host app catalog, ...
0
votes
1answer
34 views

Get column value, not ID, from a look up column

thank you for reading; my problem is: I want to retrieve the values of the column "GroupWithPriority". That column is a Look Up from other list. When I try to get the value, all I get is "...
0
votes
0answers
152 views

SharePoint Framework REACT: Get User Photo using Graph API not returning image

Iam trying to get Users Photo by using Microsoft Graph API. By testing GET request in Graph Explorer i get the result, i can se the image. It means REST query works using Graph explorer. GRAPH ...
0
votes
1answer
39 views

Spfx source files from spkg

Inlost my source file of spfx webpart. I only have spkg package can i extract source field from spkg please help mei it's urgent
0
votes
0answers
59 views

I keep getting 404 not found on gulp serve?

Request URL:https://localhost:4321/node_modules/@microsoft/sp-property-pane/node_modules/react/dist/react.js Request Method:GET Remote Address:127.0.0.1:4321 Status Code: 404 I modified a file ...
0
votes
1answer
102 views

SPFx JQuery Dialog button click does not find public function

I am new to TypeScript and SPFx development. I have a jquery UI dialog box and a public function in the same class that makes some MSGRAPH calls after the button has been clicked. The button click ...
0
votes
0answers
50 views

Share Azure Application Insights instance between web parts

How to share Application Insights instance between web parts? The idea is to have a single instance of preconfigured Azure Application Insights instance shared between a bunch of web parts. Baseline ...
0
votes
2answers
561 views

SharePoint 2019 SPFx application customizer - site collection wide automatic deployment

I am looking forward for some help. I developed an application customizer to inject JS and CSS. I am using the "includeClientSideAssets": true to get my stuff within the sppkg. In addition to that ...
2
votes
1answer
48 views

Is it possible modify the megamenu cascading dropdown spacing?

I'm looking for a way to modify to spacing between the section titles on the megamenu? I'm thinking that this could be done modifying the css scripting, but I'm not that skilled with the web-dev side ...
0
votes
1answer
59 views

SharePoint Development with SharePoint Framework

We have SharePoint 2019 at workplace. I saw the documentation in MS https://docs.microsoft.com/en-us/sharepoint/dev/ about getting started with SharePoint Development. Do I have to set up a ...
0
votes
1answer
125 views

Why are the SPFx web parts NOT working in one of the three tenants?

The five web parts needed to build the Luminas SP site are having issues with the external linking or security/settings, or maybe its just the app catalog? I deployed five web parts in two separate ...
2
votes
3answers
240 views

Get information of employee from Employee ID in Sharepoint Framework(SPFX) using REST API

I am using Sharepoint Framework(SPFX) and using Typescript for calling REST APIs. I want to get information of other employees from Office 365 or Active Directory using their Email ID or Employee ID. ...
0
votes
1answer
207 views

How to setup the environment for the sample sp-dev-fx-webparts - client-side web part samples

I have installed git and cloned the below https://github.com/SharePoint/sp-dev-fx-webparts/tree/master/samples Installed node and NPM for windows.Ran npm install for just one specific folder (react-...
1
vote
1answer
157 views

how to Get sharePoint edit document properties in spfx

how to edit properties for document in sharepoint SPFX? inside a webpart. Is it possible to do something like in the image I added?
1
vote
2answers
3k views

SPFX webpart creation Error: ReferenceError: primordials is not defined

I am creating SPFX webpart. Without doing any code changes i am executing gulp serve. I am getting below error for this. What could be the issue? GULP version: CLI version: 2.2.0 Local version: 4.0....
0
votes
2answers
313 views

SharePoint framework yo not showing all the options

I am new to SharePoint framework. I am executing yo @microsoft\sharepoint. Providing all the inputs. For the question Which type of component to be created? it is showing only Webpart. It is not ...
0
votes
2answers
107 views

How can I use Yarn to download Sharepoint Framework (SPFx) dependencies, for offline use on a VM which is not connected to the internet?

I am starting to read and learn about SharePoint Framework (SPFx). My development environment is a VM on a machine that does not have access to the internet. How would I go collect all the ...
0
votes
1answer
220 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
2answers
138 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 ...
2
votes
1answer
31 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
75 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
123 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
173 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
2answers
2k 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
58 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
292 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
500 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
90 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 ...
2
votes
1answer
2k 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 ...

1
2 3 4 5