Questions tagged [web-parts]
Web parts are are the building blocks of Microsoft SharePoint web pages.
1,682
questions
0
votes
0
answers
15
views
Inline Image duplicated after reuploading SharePoint's CanvasLayout
I have a SharePoint Text WebPart with an inline image in it.
I want to perform changes on the page and re-upload my content using GraphAPI.
To do this, I request the CanvasLayout of the SharePoint ...
0
votes
1
answer
35
views
Office Interop Word error with Sharepoint 2013
I developed a webpart that creates a Word document and exports it to PDF format using ExportAsFixedFormat. It worked in my development Sharepoint server. When I deployed it to the production server, I'...
1
vote
0
answers
61
views
[SPLoaderError.loadComponentError]: Failed to load component ([APP]). Original error: Manifest not found for component id [ID] and version "17.0.2"
I am getting an error when testing the Web Part on workbench.aspx using gulp serve command
Something went wrong
If the problem persists, contact the site administrator and give them the information in ...
0
votes
0
answers
10
views
Is it possible to use the standard function to open and view a file in Sharepoint in my spfx app?
I created a spfx app with react that can store files in a list:
Frontend View
When clicking on a button I want that all files in this list gets shown each at a time by clicking through them.
The ...
0
votes
1
answer
25
views
SharePoint React Webpart vs Office is not defined
I'm trying to create a SPO client-side Webpart in React that would use OfficeJs to start a new e-mail message on the client's desktop (Outlook).
But, no matter what I do, I can't get rid of a "...
-3
votes
1
answer
37
views
In SP Online, does a custom HTML webpart work with with CSS and scripts?
My company is switching from SharePoint 2016 to SharePoint Online.
Someone on the tech team here built a custom HTML web part. They think it might only work with JSON.
Does anyone know if would be ...
0
votes
0
answers
20
views
Create cascade dropdowns using SPFX React
I am new to SPFX. I am trying to build a web part property pane where there are 2 dropdowns. one has the lists in the current site and another one will populate the items inside the list selected in ...
0
votes
1
answer
671
views
Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'web') when using sp pnp v3
I am developing a webpart for my sharepoint tenant. When I test my solution on my workbench everything works well. But when I put it on my sharepoint online I get the error described in the ...
0
votes
0
answers
15
views
Migrate a SharePoint 2010 WSP (web part) to SharePoint Online
I'm fairly new to SP Online, but haven't had much luck finding information regarding moving a SP10 web part to SP Online. It looks like I may have to recreate it using the SharePoint Framework. Does ...
0
votes
0
answers
64
views
Setting up SharePoint 1.16.1 Web Part with Vue3. Get error TypeError: Cannot read properties of undefined (reading 'NormalModule') after gulp serve
I want to set up a project using SharePoint 1.16.1 and Vue3. I am using vue-loader and vue-class-coponent as well other packages. Whenever I tried to run gulp serve I get the error message 'TypeError: ...
0
votes
1
answer
59
views
Issue using PropertyFieldPeoplePicker target audience control in no JS framework SPFx
I follow the instruction https://pnp.github.io/sp-dev-fx-property-controls/controls/PropertyFieldPeoplePicker/ and setup target audience in React without any issue but it is not working for No JS JS ...
0
votes
1
answer
40
views
Hide 3-dots menu in Teams mobile custom app (spfx)
I'd like to hide the "..." menu in a custom app (spfx-webpart), which is displayed, when the tab is opened in the teams mobile app:
Screenshot showing the menu I like to hide
Is this ...
0
votes
0
answers
156
views
web part SharePoint site, PNP search query template, search document name with FQL
I'm new to Sharepoint, and I'm using the PnP Search Webpart (search box, result search) on my site to search for documents in PDF and Doc format. So I am using FQL to search the file names.
So the ...
0
votes
0
answers
134
views
SharePoint Excel Web Part - Auto Refresh
I am trying to add a simple Excel table as a web part that will auto update upon entering into SharePoint. I understand that it will not update unless the SharePoint page is refreshed (that is ok). ...
0
votes
0
answers
33
views
Get all hyperlinks in modern SPO page
because we are rebranding and renaming our intranet (Sharepoint Online), I need to make an index of all sites, pages and links between them to make sure none off the links will be broken afterwards.
...
0
votes
0
answers
106
views
PnP PowerShell - Update AltText in WebPart
I want to translate and update the alt text of an image in my existing SharePoint Page. To do this, I have PowerShell code running which executes functions of the PnPPowerShell module.
The Start-...
1
vote
1
answer
89
views
How To Customize Dropdown Items to use Theme Color in SPFx WebPart
I want to give my dropdown items to use the text themeColor. How can I achieve this? Below is my code:
const dropdownStyles: Partial<IDropdownStyles> = {
dropdown: { width: "50%" ...
0
votes
1
answer
31
views
Link between SharePoint and Oracle server might be broken but can't find out
Ok, this is a bit of a doozy. I've been saddled with a SharePoint 2013 on prem site and a few web parts are having issues getting information from an Oracle server. I'm trying to troubleshoot the ...
0
votes
1
answer
105
views
Get AAD Roles from React SPFx Webpart
I have a simple React SPFX Webpart.
We have deployed it to our SP Online site.
It currently displays the SP Groups of the current user.
const queryUrl = `${this.context.pageContext.site.absoluteUrl}/...
1
vote
2
answers
44
views
A hover on top of a hover
I already have a css hover where when hovering over someones name, a card to the side appears with more information about that user.
Is it possible to have another hover on top of the first hover? So ...
0
votes
1
answer
91
views
How would I go about writing tests for Sharepoint Webparts?
How would I go about Unit Testing CRUD methods in a Sharepoint webpart? I've tried following the Jest documentation in regards to creating Mock of classes / specific methods, but I don't think its ...
0
votes
1
answer
106
views
call SharePoint's add new webpart function from within a web part component (spfx-reactjs)
I'm just new to reactjs-spfx controls. I have a pnpjs control that lists all the pages and it's contents. I should be able to add edit and delete pages using that web part. I want to include in that ...
0
votes
0
answers
405
views
Unable to perform update on my question in SPFX. Uncaught (in promise) Error: Error making HttpClient request in queryable [400] odata.error
I have fixed this issue on one of my earlier projects but it seems like I am unable to do it on this project and I don't know why.
The fix that I have done earlier was by adding delete updateFAQ["...
0
votes
0
answers
136
views
@pnp/sp list request returns different objects on SharePoint Site view/edit mode
I use the @pnp/sp library to get list data in a SPFX web part.
The crucial code for my issue looks as follows:
const list = await sp.web.lists
.getByTitle("ListTitle")
.fields....
0
votes
1
answer
247
views
PNP CustomCollectionFieldType - PeoplePicker can't find users
As the title states I am trying to use the PropertyFieldCollectionData in my SPFx Property Pane.
But when I run the code and try to search in the peoplepicker nothing shows up, not even myself.
Don't ...
0
votes
1
answer
131
views
MGT PeoplePicker selectionChanged event parameter type
I am creating a SPFx web part with React and I am using the Microsoft Graph Toolkit PeoplePicker. It offers a selectionChanged callback. This callback gets passed a parameter of type Event (defined in ...
0
votes
0
answers
13
views
WebPart TypeScript Warnings! Gulp Build: App is where user can enter information in the webpart & it will populate in the extension for HeaderFooter
I grabbed this code and the sppkg works because they provide it. I need to edit the code but since the code was made a few years ago i'm having issues getting it to work so that I can change the GUID. ...
2
votes
1
answer
722
views
Nswag adds the path of the generated file at the end of the generated file
I am running into a strange issue with my Nswag generated file. After running the scrip for generating the code it is doing it successfully, but at the end of the file it is adding the path of the ...
0
votes
0
answers
25
views
How do I do the authentication for a SharePoint web part to a third party application?
I am concerned that I can store the client credentials in a secure spot.
But they should not get rendered in anything client-side web parts. Also, I need to get around the CORS headers.
0
votes
0
answers
495
views
Unknown error, watch at FSEvent.FSWatcher._handle.onchange (node: internal/fs/waters:204:211)
I am getting this error when I try to run gulp serve on a webpart that I generated through SPFx. I am on Windows 10 (Server 2019), using node v16.16.0, watchman v20220807.195202.0
I have tried ...
1
vote
1
answer
560
views
How to download latest version of pnp webparts sppkg files?
I want to download latest build of sp-dev-fx-webparts. I need sppkg file, where I can find latest build of pnp webparts?
https://github.com/pnp/sp-dev-fx-webparts/tree/main/samples/react-list-form
0
votes
2
answers
104
views
Is there any alternative to add an app in SharePoint team site without adding to App Catalog site?
I have SharePoint Team Site Administrator-level permission. I don't have AppCatalog site permission and I don't have SharePoint Administrator-level permission.
I need to add the PnP Modern Script ...
1
vote
1
answer
376
views
Sharepoint Script Editor Web Part Not Showing Up
I have SP 2019 setup and I cloned and generated the .sppkg file from the solution below:
https://github.com/pnp/sp-dev-fx-webparts/tree/main/samples/react-script-editor-onprem
I uploaded to the apps ...
1
vote
1
answer
160
views
ASP.NET 2.0 Web Parts migration to Blazor
I'm planning to migrate a legacy ASP.NET Web Parts application to Blazor (most likely server-side).
I know that ASP.NET Web Parts won't be migrated to .NET 6 so I'm wondering if Blazor can offer ...
1
vote
0
answers
31
views
Can cypress.io test modern SharePoint webparts?
Now I'm in the stage where I need to pick a test automation tool to use it on a project built on modern SharePoint.
And of course this will include testing out of the box webparts and SharePoint ...
0
votes
0
answers
159
views
how to use the function onChange/onChanged when an item is updated in the SPFx Framework
I tried to use the onChange function in my program, but I don't have any clue how it can work.
Here is my code so far:
<TextField
label="Project Title"
required={true}
...
1
vote
0
answers
385
views
SharePoint Framework (SPFx) -- Web Part Solution Uploaded, Enabled, Not Deploying
I'm trying to deploy a custom web part solution built with SPFx to my site collection app catalog on SharePoint. When I upload the .sppkg file, I get no errors, and the web part is automatically '...
0
votes
0
answers
875
views
System.IO.FileNotFoundException: Could not load file or assembly "EPPlus, Version=4.0.5.0" on .NET 4.7
What is the error in C# Visual Web Part Solution?
System.IO.FileNotFoundException: 'Could not load file or assembly 'EPPlus, Version=4.0.5.0, Culture=neutral, PublicKeyToken=ea159fdaa78159a1' or one ...
0
votes
1
answer
1k
views
Adding into sharepoint list using react js spfx webpart
I am using this code in my webpart to insert into the sharepoint list with list name, but moving this code into production environment is creating an issue since its forming the wrong url for ...
1
vote
0
answers
33
views
How to open Bootstrap ModalBox in Webpart React
I have a sharepoint solution built in react template and would like to create just modalbox based on bootstrap.
i have imported the following libaries
bootstrap: 4.6.1
jquery: 3.5.1
it works just ...
0
votes
1
answer
141
views
CSOM Sharepoint Document library List View Properties Selected View
I am trying to automate as much as possible creation of pages, subsites, Document Libraries etc and I am facing something I am stuck for several days.
I found how to import a Document Lirary into a ...
0
votes
1
answer
211
views
How would I use a specific webpart from the SP Starter Kit (SPFx) Currently getting error TS2307
I am currently trying to use the People Directory Webpart from SP Starter Kit. I have my baseline NPM setup done to the point where I can run gulp serve and be shown the "Hello World" ...
0
votes
1
answer
169
views
Sharepoint web part / react app error: Property 'show' does not exist on type 'Readonly<{}>'
It's been a long while since I've done anything with React, not to mention I haven't done much of it in sharepoint. I used the yeoman generator to create a simple react app and now I am having ...
1
vote
0
answers
122
views
Can PowerShell update the content of a Text web part?
I would like to use a PowerShell script to amend the content of a Text web part in one of our SharePoint Online sites, but I don't see anything in SharePoint PnP, nor in M365 PowerShell that will ...
0
votes
1
answer
447
views
Typescript SPFx Web part - As soon as I install bootstrap it started showing popperjs error in gulp serve
I created a spfx webpart using typescript. As soon as I installed the bootstrap its started showing the popperjs error.
here is my package.json look:
{
"name": "test-webparts",
...
1
vote
1
answer
244
views
Set Target Audience by specific view of SharePoint List using Modern Experience
In Classic Experience, there’s an “Edit Page” on settings where I can access WebParts and set target audience per specific view of SharePoint List, however, this is not possible on Modern Experience. ...
0
votes
1
answer
269
views
Sharepoint: How to filter FAQ List based on search keyword
I have a SharePoint custom FAQ List (columns: Questions, Answers, Category).
I want to filter this FAQ based on the user selecting the category in the front-end (A UI something like this should work ...
0
votes
1
answer
381
views
Add custom web part to page SharePoint 2013 c# csom
I am trying to write c# code to add custom webpart programmatically to SharePoint 2013 page.
I tried searching net and stackoverflow but couldn't find any proper article or blog which can help me to ...
0
votes
1
answer
132
views
convert ssom to csom of Adding Document Librarty to Sharepoint 2013
I am trying to convert below code SSOM to CSOM of adding adding Document Library to SharePoint 2013 page.
SSOM
SPFile ofile = web.Getfile("Pages/Home.aspx");
using(SPLimitedWebPartManager ...
0
votes
1
answer
394
views
Datatables.net - Export to Excel is showing error while customizing
I am using SPFx, typescript and datatables.net for my webpart and I want to export to excel and do some customization on data like align to left.
Exporting is working fine but while I add code for ...