|
Apologies for the shouting but this is important.
When answering a question please:
- Read the question carefully
- Understand that English isn't everyone's first language so be lenient of bad spelling and grammar
- If a question is poorly phrased then either ask for clarification, ignore it, or mark it down. Insults are not welcome
- If the question is inappropriate then click the 'vote to remove message' button
Insults, slap-downs and sarcasm aren't welcome. Let's work to help developers, not make them feel stupid.
cheers,
Chris Maunder
The Code Project Co-founder
Microsoft C++ MVP
|
|
|
|
|
For those new to message boards please try to follow a few simple rules when posting your question.- Choose the correct forum for your message. Posting a VB.NET question in the C++ forum will end in tears.
- Be specific! Don't ask "can someone send me the code to create an application that does 'X'. Pinpoint exactly what it is you need help with.
- Keep the subject line brief, but descriptive. eg "File Serialization problem"
- Keep the question as brief as possible. If you have to include code, include the smallest snippet of code you can.
- Be careful when including code that you haven't made a typo. Typing mistakes can become the focal point instead of the actual question you asked.
- Do not remove or empty a message if others have replied. Keep the thread intact and available for others to search and read. If your problem was answered then edit your message and add "[Solved]" to the subject line of the original post, and cast an approval vote to the one or several answers that really helped you.
- If you are posting source code with your question, place it inside <pre></pre> tags. We advise you also check the "Encode "<" (and other HTML) characters when pasting" checkbox before pasting anything inside the PRE block, and make sure "Use HTML in this post" check box is checked.
- Be courteous and DON'T SHOUT. Everyone here helps because they enjoy helping others, not because it's their job.
- Please do not post links to your question into an unrelated forum such as the lounge. It will be deleted. Likewise, do not post the same question in more than one forum.
- Do not be abusive, offensive, inappropriate or harass anyone on the boards. Doing so will get you kicked off and banned. Play nice.
- If you have a school or university assignment, assume that your teacher or lecturer is also reading these forums.
- No advertising or soliciting.
- We reserve the right to move your posts to a more appropriate forum or to delete anything deemed inappropriate or illegal.
cheers,
Chris Maunder
The Code Project Co-founder
Microsoft C++ MVP
|
|
|
|
|
Hello Code-Project Experts,
I am trying to call a REST service to add a user to a Sharepoint Group after having him selected using a People Picker. In my SPFx WEBPART, the people picker works just fine but the REST call is not being triggered. I receiving an error of 'Cannot read property 'web' of undefined.' Apparently, the web property of the pageContext object (I need the absoluteURL property to structure my REST call) cannot be assigned over the React component context.
Below are the screenshots of the calls from within VS code -
private addSelectedUsers(): void {
let currentWebUrl = this.context.pageContext.web.absoluteUrl;
let requestURL = currentWebUrl.concat("/_api/web/SiteGroups/GetByName('DIN Standard Viewers')/Users");
console.log(requestURL);
let dataToPost = JSON.stringify({
'__metadata': {
'type': 'SP.User'
},
'LoginName': this.state.addUsers
});
let spOpts = {
headers: {
'Accept': 'application/json;odata=nometadata',
'Content-type': 'application/json;odata=verbose',
'odata-version': ''
},
body: dataToPost
};
this.context.spHttpClient.post(requestURL, SPHttpClient.configurations.v1, spOpts).then((response: SPHttpClientResponse) => {
if (response.ok) {
response.json().then((responseJSON) => {
console.log(responseJSON);
});
}
});
}
Here is the code inside my MaintainGroupsProps.ts properties file -
import { WebPartContext} from '@microsoft/sp-webpart-base';
export interface IMaintainGroupsProps {
description: string;
context: WebPartContext;
}
I understand that there was some kind of recent depracation of WebContext. Is this the case? My package JSON version settings for react and react-dom are 16.8.5.
I am not at all an expert and appreciate any suggestions you may have. I am teaching myself react and SPFx and this is an exercise for me to better understand the framework. Thanks, everyone.
Ray Fischer
|
|
|
|
|
Hi Team ,
kindly help to share point 2013 NTLM windows authentication login page customization.
I want to create a custom login page page in ASP.net/java script from where i can give the credential of windows users. I don't want to use the standard popup for signin.
Please suggest me the things to achieve this.
Regards,
|
|
|
|
|
Create a form on one share point but data sent to another site
I have two separate share point sites. One is used as a public intranet site for all employees. The other is an office specific site. The office one has many restricted settings so only certain people can access it. The other is fully public for all employees. They are on separate servers. So one is not a sub site to the other.
I tried using infopath to create a form on one site and submit the data to the other one, but it failed. I need the data protected because of it being personnel info being submitted but I need any employee to be able to submit it.
My main concern is data security. The info submitted must remain locked down and only viewable to a my office. But I need everyone to be able to submit a form.
I tried using a minted workflow but it would not connect between the two sites.
Any thoughts on how to do this between to separate sharepoint sites?
|
|
|
|
|
Hi,
I want to access the _layouts/15/ folder in this folder contains the listform.aspx I want to customize these file below sample url can't be open
https://AAAA.BBBB/sites/xxxx/_layouts/15/listforms.aspx?PageType=&ListId=%7BF7B33AB9%2DB3
How can i access the _layouts/15/ anybody guide to me. I am doing online sharepoint.
Thanks and regards
kumar
|
|
|
|
|
|
not 2013 not 2010. 2016!
PowerPivot data refresh works fine with workbooks under 10mb but not larger than that.
Where the elephant in Central Admin do I increase the size of the workbook in SharePoint 2016.
I did mention this is 2016 On Premise and Not 2013.
Thoughts
To err is human to really mess up you need a computer
|
|
|
|
|
yep, solved it myself.
Solved it finally.
On the OOS server. in PowerShell run the following commands. Change 25 to whatever you want.
$farm = Get-OfficeWebAppsFarm
$farm.ExcelWorkbookSizeMax = 25
Set-OfficeWebAppsFarm -ExcelWorkbookSizeMax 25
restart-service wacsm
$farm.ExcelWorkbookSizeMax
To err is human to really mess up you need a computer
|
|
|
|
|
I've been using the following URI: _api/Web/SiteUsers This gets a list of members. From this data, how can I determine the site owner and the level of rights for each of the members? Or will this require a different URI?
|
|
|
|
|
you have to look at security. That is in /_layouts/15/user.aspx
or depending upon your version of SharePoint under site settings || site permissions.
To err is human to really mess up you need a computer
|
|
|
|
|
|
I am trying to get a SharePoint 2013 application WebPart working compiled with Visual Studio 2019. First, I have added the custom app to the SharePoint catalog but under the header "Valid App Package" column the value is No. Second when I create a Farm Collection and try to Build an app I get the error
message "You need Office Development tools to create a site". I have looked for the download but can't find one. Has anyone experienced this same issue?
modified 12-Oct-19 14:57pm.
|
|
|
|
|
I am trying to find a small calendar web part which may connect to the outlook calendar. like calendar app.
|
|
|
|
|
I have to open my word document which is present in SharePoint library in client word application, but it should open as a new document that mens original document behaves like a template from which new document will take content and open as new. Currently we are using content type where we have given the url of the base document which will allow us to open that document as new.
But each time we have to click on drop down to select the document and we dont want to use it.
I am using SharePoint modern experience thats why i can not use script inside web part to do that and also i don't have any server side coding to do this.
I got the following url which we can put in browser which will open given document in client word application but this is not a valid hyper-link or navigation link so can not use it.
"ms-word:nft|u|https://xxxx.sharepoint.com/sites/test.docx"
I also tried to put dotx file in SharePoint library and tried to navigate it but it either opens it in edit mode or downloads it.
So can anyone help me to do this?
|
|
|
|
|
I believe you have to save that word document as a word document template. .dotx then upload it and then you can use it.
To err is human to really mess up you need a computer
|
|
|
|
|
Hi,
How to retrieve a list item based on today's or current date in SPFX??
|
|
|
|
|
Hi, I created a survey, using the Survey app, can I change bold face and font that is the default when creating the survey questions.
Thank you
|
|
|
|
|
|
I need Create a link in Sharepoint online document library. For this I need to use CSOM. Can any one suggest a sample code.
|
|
|
|
|
I have been trying for a couple of weeks to get this rolling and am pulling out what little hair I have left. I have a custom list and when an item gets added, I have a workflow set to create an item in an external list. So I associate the workflow with the custom list and target the external list. This is supposed to be possible. In SharePoint designer, I can target the external list by selecting a 2010 workflow but when it comes to mapping the fields, all I get is a blank list. I have tried the same operation using Visual Studio. There, it will not even let me target the external list. I have tried this in SharePoint Online as well as on-premises 2016 Sharepoint Server. I have tried using SP Designer and VS from my desktop as well as from installed on the server. I have all of the credentials I need - I am site admin/owner. There has got to be a small setup piece that I am missing because I have seen many posts where people have done exactly what I am describing and only a couple of posts where people have encountered the same issue I am having. In those cases, no meaningful help was ever offered. Hoping some kind soul reads this and passes on the key. Thanks!!!
|
|
|
|
|
Greetings experts,
We have made over 1000 links anonymous so external users can access them.
The sad thing is we did this manually as we could not find a PowerShell script to help us accomplish this.
We have discovered unfortunately is that SharePoint is set up to expire any of these links that are older than 30 days.
Right now, we are able to use this simple PowerShell to stop the rest of the active links from expiring:
This PowerShell command disable the expiration entirely.
Set-SPOTenant –RequireAnonymousLinksExpireInDays 0
There are however, a bunch of links that have already expired.
Is there any PowerShell script that we can run to flip those expired scripts to active so that with the script above, they will stay active?
Any assistance is greatly appreciated.
|
|
|
|
|
Perhaps this should go into Weird and wonderful?
So this week. I have been fighting with a SP 2013 Workflow. It keeps getting suspended.
The error is along this line.
linky here
Nothing they suggest in Googly is working at all.
Digging thru the ULS logs. Find this error.
Quote: The set of claims could not be mapped to a single user identity. Exception 3001003;reason=The incoming identity is mapped to more than one user profile account in SharePoint
so Into User Profile Service I go.
Looking thru the User Profile service discovered I had two user profiles due to Domain name changes from mergers etc.... Ended up deleting one of the userprofiles and everything worked.
Central Admin || Application Management || Manage Service Applications || User Profile Service Application.
Search for and find the Account that is kicking off the workflow. In my case it was my own. In many cases it might be others.
Delete the one that you don't need. In my case there was a olddomain\myUsername Pretty easy to find.
Things then worked fine.
To err is human to really mess up you need a computer
|
|
|
|
|
Hi SP experts,
Does any one tell me how to include ReactJS code in SPFX. I have some custom project in reactJS(github), so how to include in SPFX.
Please help me out in this.
Thanks
Saritha
|
|
|
|
|
Hi All, Good evening.
The issue is related to SharePoint 2013. The size of 'WSS_Content' content database is 111 GB and consists of migrated SharePoint 2010 site collections via Sharegate. Now, i want to delete all the site collections without deleting the database. How do i do that?
Kindly help.I am new to SharePoint migration.
-Thanks,
|
|
|
|