Tagged Questions
0
votes
0answers
22 views
Load remote .js .css dependencies for SPFx Typescript web part
To reproduce:
Create basic SP SPFx project.
yo @Microsoft/sharepoint
Answer setup
Accept all defaults
Add to config.json
"externals": {
"a": "https://developer.api.autodesk.com/modelderivative/v2/...
0
votes
0answers
17 views
How to refresh Odata Service Project Server in Web Part after Deployed?
In project server i try creating web part using odata service project server and it worked perfectly. I try using following this tutorial and it possible get data in project server. This way i choose ...
0
votes
1answer
29 views
Sharepoint View list
I have several lists in SharePoint, and each list has a number of views
How can I get view list items with value in SharePoint using REST API?
Can I get this data through CSOM?
When I use this ...
0
votes
1answer
30 views
SPServices is null or not an object
I added this single method to sharepoint web Part.
And even though it works in a different project in different repository, it does not work in the current site, any idea what might go wrong?
Code ...
0
votes
0answers
45 views
SharePoint XML Visualization
I have a SharePoint document library with about 40 XML files of the same datatype.
I would like to visualize the contained data within SharePoint.
The requirement is that I click on a button next to ...
0
votes
1answer
22 views
SharePoint Accordion not loading properly
I am working on a SharePoint page, utilizing the jslink for the list web part. I have the following code written out:
(function () {
var overrideCurrentContext = {};
overrideCurrentContext....
0
votes
2answers
27 views
Why doesn't my input in my SharePoint WebPart changes value?
I am trying to change the value of an hidden input every n seconds with a timer in my webpart.ascx.cs to retrieve the value later on in JavaScript, but the value never seems to change. Can you help me ...
0
votes
2answers
67 views
Sharepoint Online WebParts and TypeScript
in the past I created a site in sharepoint 2013 which I now would like to implement as a Sharepoint Online WebPart. I have been reading a researching a bit, and I've found that WebParts are created ...
1
vote
1answer
20 views
How to put a web part from one site to another in SharePoint?
There are two SharePoint sites, each based on its own SharePoint installation.
Both are in the same domain.
The first site is for a document flow.
The second site is for a knowledge base.
I need ...
0
votes
0answers
74 views
SharePoint 2013 - Webpart added by powershell but it does not display when view by edit mode on web browser
*** I used SharePoint Powershell(2013) to add a webpart to a page
*** Affer added webpart success from powershell, then I go to the page, I saw the webpart be added to the page(I also saw the ...
0
votes
0answers
23 views
Unable to retrieve list column items with content search webpart
I'm unable to use the content search webpart to retrieve list column items.
Here's an oversimplified example of my list:
+----------+-------+
| Category | Unit |
+----------+-------+
| CatA | ...
0
votes
0answers
29 views
Converting Jquery into its own Webpart in Sharepoint
<script src="https://code.jquery.com/jquery-1.7.2.min.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(
function () {
//...
1
vote
0answers
25 views
Sharepoint Framework webpart import images and fonts
I use Angular 4 in the Sharepoint framework but I want to add several fonts and images to my web part. Does someone have experience with this and give me a hand or point me in the right direction? ...
0
votes
0answers
49 views
How to create a custom property for targeted audience within a sharepoint web part
So I have an existing Sharepoint web part and I want to allow a button within that web part to hide or show depending on the users group, however I also want this to be configurable like the targeted ...
0
votes
0answers
7 views
Where is the definition for a (custom) Sharepoint web part view kept?
I'm migrating content from Sharepoint 2007 to 2010 and we have ~50 custom web parts. I'm trying to find where the definitions are for the web parts' views are so I can just move them, but they don't ...
0
votes
2answers
31 views
Not able to add any WebPart on the site page
I have created a "Team Site" on SharePoint online. When I edit a site page, I am not able to view any option of adding a web part on the page. All I can see are following options. Please click the ...
0
votes
0answers
44 views
JSOM setting <Query> tag when Programmatically creating a XsltListViewWebPart fails
Code snippet:
this.clientContext = new SP.ClientContext(siteUrl);
this.oFile = clientContext.get_web().getFileByServerRelativeUrl(serverRelativeUrl);
this.limitedWebPartManager = oFile....
0
votes
0answers
7 views
Sharepoint error during debugging
Im getting error (image below) when im trying to debug my web mvc part (created as provider-hosted, sharepoint 2013, vs 2017).
I tried many options, but nothing happened.
0
votes
1answer
17 views
Caching does not work for Content Search Web-Parts
Background Information
Content Search Web-Parts supports a caching feature as described here: https://support.office.com/en-us/article/Make-pages-load-faster-with-caching-in-the-Content-Search-Web-...
0
votes
0answers
201 views
For SharePoint 2016, is there a way to place web parts within HTML custom code?
I am looking for ideas/guidance for importing web parts into custom coded HTML in SharePoint 2016. Below is a web layout that uses a rotating card layout from Creative Tim and Bootstrap styling.
The ...
0
votes
1answer
36 views
Building an App in SharePoint Online
I have a client that wanted an easier way for his team members to build/update pages on their site, their site is heavily customized with a lot of JavaScript. The issues is that when a team member ...
0
votes
1answer
91 views
Adding SharePoint list webpart to a Specific Page after Initial deployment with CSOM
During the deployment of my sharepoint site, I created a few lists that I'd like to programmatically add to the home page, but I cannot find anything that works.
Right now, I'm getting the following ...
0
votes
0answers
32 views
SharePoint 2010 visual webpart page load issue
I am working on SharePoint 2010 visual webpart for the first time. I have some functions called on page load that sets some variable values inside the
"if (!IsPostBack){}" method.
On button click, ...
1
vote
1answer
340 views
SPFx how to set a people field in a list, e.g. “convert” AccountName to Lookup ID?
I am trying to build an SPFX WebPart with React Office UI Fabric. I have a SharePoint list with a People field called AssignedTo. The ID values are like 12, 20, and so on. When I select a person with ...
0
votes
0answers
78 views
How to manage onClick event of a row field in DetailsList SharePoint Web part(UI Fabric)
I want to catch the event when click in a row field of a DetailsList in Webpart. My code looks like :
return (
<div>
<div>
<div className="ms-Grid">
...
1
vote
1answer
192 views
Setting Toolbar in SharePoint ListView Webparts using CSOM
I am trying to set a Toolbar for SharePoint list view web parts. I can able to done this in SSOM but cant in CSOM. I have tried by updating the Toolbar type element in the XMLDefinition property of ...
0
votes
0answers
130 views
sharepoint 2013 inputformtextbox ie11 web part rich text list items
I am developing a SharePoint 2013 web part as a maintenance interface to a SharePoint 2013 list using C# in Visual Studio 2015 and the .Net 4.5 framework. The list fields include single line text, ...
0
votes
1answer
31 views
How to send a mail to a user in share point 2013
I am designing a web part page (this page is called support page). If any body facing some issue he needs to fill up the form and send to email id.
Forms is as follows:
First Name:
Last Name:
Issue ...
0
votes
0answers
16 views
Adding SharePoint custom webpart error after install
I'm having trouble adding a custom webpart to SharePoint. I'm using Powershell to install the wsp file. That works, the problem is when I add it to a site it says 'Web Part Error: A Web Part or Web ...
0
votes
0answers
13 views
SharePoint Visual Web Part generate random number unique number every page refresh
I am developing a visual web part for SharePoint 2013.
I have a function that is generating random number that will be used as index to take random item from a collection. I am using below code to ...
1
vote
0answers
128 views
Using C# code in SharePoint WebPart
I have used the below C# code in SharePoint 2010 webpart to get hold of my configuration settings,
string _configInfo;
[Personalizable(PersonalizationScope.Shared), WebBrowsable(false)]
public string ...
1
vote
3answers
256 views
Why can't powershell find my file?
I'm trying to push a custom SharePoint WebPart to my farm. By all accounts I should do this with Install-SPSolution... I wrote a PowerShell script to perform the command but it says it can't find my ....
0
votes
1answer
52 views
How to launch DropDownList SelectedIndexChanged event only if clicked on spicified button?
So. I'm generating a lot of DropDownLists on page. Page has a 2 Views, first has this DDLs that can be changed, second view is doing some other things and user can change this views.
Because DDLs are ...
0
votes
2answers
14 views
ASP.NET SharePoint web part: Showing subsites calender events in root site calender
I have for testing purposes a sitecollection called BigBroSite. Under the root site i have three subsites called Support, Development and Marketing. On each of the subsites I have a calender app with ...
0
votes
1answer
36 views
how to give rights to user in sharepoint 2013
I am working on sharepoint 2013.I have 5 site pages which are linked to top links bars.I want to on 1 st Link..Named Ecommerce URL: http://www.123.com is linked to it and opens page which has 5 ...
1
vote
1answer
188 views
Button click event not firing in user control, created dynamically in another user control
I have visual web part and two usercontrols.
On Page_Load() of visual web part i dynamically create userControl1:
protected void Page_Load(object sender, EventArgs e)
{
UserControl1 userControl = ...
0
votes
0answers
184 views
how to post html form to action method in cs
I have a html form it should be post content to action("searchUser") in backend
user.ascx:
<form action="/searchUser" method="POST" class="form-horizontal">
...
</form>
user.ascx.cs:
...
0
votes
0answers
48 views
Sharepoint Text Filter not updating List
I have the SharePoint web part called 'Text Filter' and a list beneath. I've connected the 2 of these so that the list 'gets filters values' from the text filter. When typing a value into the text ...
1
vote
1answer
104 views
“this” undefined in React component event handler
When the user clicked submit button I need to bind these input fields to an instance of Message interface, to do this I created an Message object in class
and set the values of input values in form(...
0
votes
0answers
339 views
Element 'usercontrol' is not a known element -Sharepoint Webpart
I am trying to insert a user control into a Sharepoint Visual Webpart.
It doesn't even work with an empty webpart project. I get this erro plus the ''initializeControl' is not declared'
Both the ...
2
votes
1answer
50 views
ASP.NET visual web part + AJAX, can't make it working
I was trying to implement this simple example http://www.aspsnippets.com/Articles/Call-ASPNet-Page-Method-using-jQuery-AJAX-Example.aspx
But it doesn't work, it gives
Failed to load http://site/...
0
votes
2answers
2k views
Adding Pop Up Window when New Page Opens on Sharepoint
I am currently redesigning a page on SharePoint and I am having trouble with adding in a pop up window when a new page opens. I want the user to click into a new page and when the new page opens, a ...
4
votes
2answers
376 views
How to fix freezing page after file download?(TransmitFile in TreeView SelectedNodeChanged)
So I know that this is common problem, page freezes (any buttons visually are clickable but doesn't perform any action) because it doesn't close some request after file download.
System.Web....
0
votes
1answer
58 views
Remove SharePoint User with Only Partial Login Name
I have a need to remove a user's permissions from a site collection. The issue is that I do not have the entire loginName. Each user is given a unique loginName (e.g. DOMAIN/012345678.cnd) The 'cnd' ...
1
vote
0answers
556 views
Deploy Visual Studio 2015 sharepoint2016 web part error
On my VM, I have got vs2015 and sharepoint server 2016 installed. So when trying to deploy a webpart, I got this error:
Error message:
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\...
0
votes
1answer
75 views
Find The correct process Id in visual studio for debugging sharepoint?
When i want to attache a process Id with the w3wp.exe to my solution in visual studio and debug my web part in sharepoint I have more than one w3wp.exe process . How can I find the correct process id ...
0
votes
1answer
264 views
Error in Production Application SharePoint
We have SharePoint application running perfectly finr on production since long however from today we are getting error on production on one page , I have traced the log via sharepoint logviewer on ...
0
votes
1answer
90 views
CAML to search for pages returns all files and folders in a site
I am trying to write a simple web part for Sharepoint 2013 that searches for all pages of a certain content type and outputs a list of their titles. I am using a CAML query to search for that. But no ...
0
votes
0answers
160 views
Project Summary Web part Provisioning in sharepoint
I am working on "Project Summary web part" Provisioning in wiki page as well as publishing page too.
Below is my code :
ProjectSummaryWebPart newprojectSummaryWebPart = (ProjectSummaryWebPart)...
1
vote
1answer
172 views
Sharepoint webpart with enableEventValidation=false
I have a sharepoint webpart and I use below controls:
<asp:DropDownList runat="server" ID="ddlCategory">
</asp:DropDownList>
<asp:ListBox runat="server" ID="ddlHSESubCategory" ...