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.

5
votes
3answers
8k views

How to retrieve pageContext in SPFx?

I'm following the second tutorial from the SharePoint Framework dev center: Connect to SharePoint It states that you can retrieve details from this.context.pageContext, however this is no longer the ...
1
vote
1answer
119 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 ...
8
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 ...
1
vote
1answer
467 views

create/deploy master page and page layouts using spfx

how to create and deploy Master Page and page layouts using the SharePoint Framework? SharePoint Framework is all about related to creating client side webparts only?
3
votes
2answers
770 views

How to get the URL for a selected document in a sharepoint framework extension spfx

How can I obtain the URL for a selected document in a sharepoint framework extension? e.g. a friendly url or unique reference that a user can use to open the selected document; https://mysite....
2
votes
2answers
810 views

Typescript errors in SharePoint Framework webparts

I created a new sharePoint framework webpart using the msdn link https://dev.office.com/sharepoint/docs/spfx/web-parts/get-started/build-a-hello-world-web-part After Executing the gulp serve ...
2
votes
1answer
395 views

How to share data for all Web Parts (SPFx) within a SharePoint Online tenant?

We are an ISV and developing a SPFx Web Part using the new SharePoint Framework (The same question applies for the Script Editor Web Part too). The Web Part will be added to hundreds of pages across a ...
0
votes
1answer
2k views

Get data from multiple lists using REST API

My requirement is: To pass listnames as an array to a method and concatenate the result after each success. The problem is I'm not able to concatenate the result from the previous ajax call ...
0
votes
1answer
701 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 ...