Block user from adding data but allow him to edit contents to SharePoint list
Copy List Item to other list In a site collection>?
Hello,
I am using this code to add list item in sharepoint list and its working fine .But now I want to copy the same Item in other list in same site collection.How it can be possible?
function AddListItem(Fieldvalue) { $().SPServices({ operation: "UpdateListItems", async: false, batchCmd: "New", listName: " list name ", valuepairs: [["Fieldname", Fieldvalue]], completefunc: function (xData, Status) { } }); }
Thanks,
After Migartion from SP2010 to SP2013,Existing One Note files not synching
We have a document library in SP 2010 which has one note files. After migration to SP 2013, the One Note files exists in 2013 document library, but while trying to open/edit these files using OneNote Client or the One Note webapp, it fails to open. Below are the different scenarios that i get:
Existing one Note
==================
a. Opening using Client-FAILED due to Sync Failure
b. Editing using Client-FAILED due to Sync Failure
c. Opening using OneNoteWebApp-FAILED with Error "Cannot show the content"
d. Editing using OneNoteWebApp-FAILED with Error "Cannot show the content"
==================
a. Create new one note document in library using Client- DOC CREATED
> Opening and Editing using Client
Result : FAILS as Unable to SYNC (Error msg below)
b. Opening and adding new section using OneNoteWebApp
Result : Passed
Sync Error : An error occurred while attempting to sync this section or notebook. (Error code: 0xE402005F)
Change the color of Single column ?
Hello,
I have added one ListWebpart on webpart page and want to change the color of single column that is Status column contains data (Approved,Rejected,Pending).But that below code is not working I added this code in CEWP.
<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.10.0/jquery.min.js"></script><script type="text/javascript"> $(document).ready(function(){ $Text = $("td.ms-cellstyle.ms-vb2:contains('Approved')"); $Text.css("color", "#0076e5"); $Text = $("td.ms-cellstyle.ms-vb2:contains('Rejected')"); $Text.css("color", "#70e120"); $Text = $("td.ms-cellstyle.ms-vb2:contains('Pending')") $Text.css("color", "#ff0000"); });</script>
Thanks,
Copying Workflows from one site to another
Hello
I want to copy workflow from one site to another. I cannot export/import as it is different site.
Is there any other way to copy workflow other than "Saving as template" and adding as solution to another site?
Thanks
Redirect from EditForm to Workflow Initialization Form
I have a list item that has information, notes about it and a status column. What happens is leadership reviews the item and then triggers a workflow which branches based on what the value of the status column is. I can't have the workflow trigger on item modified because other people will be changing things in between reviews and I can't use "Wait for Status Change in Current Item" because I don't know what the next status will be. I had a custom action in the view ribbon for the team to manually trigger the workflow when they're done, but have been told that that is confusing and easy to forget.
I am exploring several options but was wondering if there was a way to add a second "Save Button" that saved and then either triggered the workflow or redirected to a workflow initialization page. I have tried setting
<SharePoint:SaveButton runat="server" ControlMode="Edit" id="linkbutton" Text="Reviewed" RedirectUrl="../../<workflowurlhere>"/>
but then I get a web part error.
Promoted links in center of page using CSS code in a script editor
I do not have access to the sharepoint designer (company policy) but I'm trying to get my promoted links in the center of my SharePoint-page. This all in a way that they stay centered when I change form laptopview (1366x768) to desktopview (1920x1080). I've googled the problem but no solution is (yet) presented.
Can you help me to the script editor code I need?
RunWithElevatedPrivilages, ListViewThreshold and BreakRoleInheritance
Hello all,
I have been trying all ways I can think of to write code that breaks role inheritance on a large list (beyond the list view threshold). Using the UI, a user who is a farm admin can do it, but I need to let non-admins do it, and I thought RunWithElevatedPrivilages would solve it. It doesnt. I also followed advice from another thread and tried setting the clearSubScopes to false -but that made no difference.
I tried to impersonate the system account using the site.systemaccount user token - same results.
So here is my dilemma - I can shift the code to run in a timer job - where I assume it will work, but I would prefer to have it work as part of my web page. Does anyone have a clue?
Ishai Sagi, SharePoint MVP MCTS in SharePoint Development (WSS & MOSS) Author (2007 how to book): www.tinyurl.com/sharepointbook Author (2010 how to book): www.tinyurl.com/sharepointbook2010 Blog: http://www.sharepoint-tips.com Company: http://www.extelligentdesign.com
Unable to authenticate to SharePoint Online programmatically with federated authentication
I am unable to authenticate to SharePoint Online using SharePointOnlineCredentials, receiving the error message:
Identity Client Runtime Library (IDCRL) encountered an error while talking to the partner STS.
This same code worked until we implemented AD FS to federate authentication to our Active Directory. And, in fact, the code still works when I access my own personal SharePoint Online site, which does not use federated services. This leads me to suspect there is a problem using SharePointOnlineCredential with federated services.
Can anyone confirm this is the case? And, if so, what is the workaround?
I created a simple program to verify this issue, which follows:
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Microsoft.SharePoint.Client; using Microsoft.Online.SharePoint.Client; using System.Security; namespace SPOConsole { class Program { static void Main(string[] args) { var targetSite = new Uri("<https://<mydomain>.sharepoint.com>"); var login = "<myuserid>@<mydomain>.com"; var password = "<mypassword>"; var securePassword = new SecureString(); foreach (char c in password) { securePassword.AppendChar(c); } var onlineCredentials = new SharePointOnlineCredentials(login, securePassword); using (ClientContext clientContext = new ClientContext(targetSite)) { clientContext.Credentials = onlineCredentials; Web web = clientContext.Web; clientContext.Load(web, webSite => webSite.Title); clientContext.ExecuteQuery(); Console.WriteLine(web.Title); Console.Read(); } } } }
The code fails on the line:
var onlineCredentials = new SharePointOnlineCredentials(login, securePassword);
Following is the stack trace:
Microsoft.SharePoint.Client.IdcrlException was unhandled
HResult=-2147186451
Message=Identity Client Runtime Library (IDCRL) encountered an error while talking to the partner STS.
Source=Microsoft.SharePoint.Client.Runtime
ErrorCode=-2147186451
StackTrace:
at Microsoft.SharePoint.Client.Idcrl.ManagedIdcrl.CheckHResult(Int32 hr)
at Microsoft.SharePoint.Client.Idcrl.ManagedIdcrl.LogonIdentity(String username, SecureString password)
at Microsoft.SharePoint.Client.Idcrl.SharePointOnlineAuthenticationProvider.Logon(String username, SecureString password)
at Microsoft.SharePoint.Client.SharePointOnlineCredentials..ctor(String username, SecureString password)
at SPOConsole.Program.Main(String[] args) in c:\Users\michael.norton\Documents\Visual Studio 2012\Projects\SimpleSPOConnection\SPOConsole\Program.cs:line 26
at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
InnerException:
How can I add a delay to my Top Navigation menu so it doesn't disappear so quickly?
I am running SharePoint 2013 Enterprise and using Managed Navigation throughout my site collection. The navigation menu goes 3 levels deep and works pretty well. The main complaint from the users is that the nav menu disappears if they inadvertently move their mouse too far.
For example, If I hover over Team Sites>HR>Benefits and then accidentally let my mouse go off the menu, the entire menu collapses. I'd like to add a slight delay - maybe a half second, where the menu will not collapse immediately. How can this be achieved?
Unable to View Content of the Document Library in SharePoint 2013
I am the site collection administrator of one application. One specific user cannot able to see the content of the document library. He is provided with the full control over the site as well as that specific document library. He is able to access the document library but cannot see the contents in it. All other users able to view the contents.
Please suggest me some solution.
Find maximum number of characters defined for each column programmatically
Hi,
I have a custom list in which few columns (single line of text) have custom maximum number of columns. example: 40, 75.
How to find the max number of characters defined for columns programmatically?
Thanks
Downloading files from a document library
Hello,
I have sorted uploading and deleting files from a SharePoint 2013 Document Library (using CSOM), but I am having problems with the following code to allow users to open / save files.
public void DownloadDocument(string siteURL, string libraryName, string fileName) { using (ClientContext clientContext = new ClientContext(siteURL)) { var list = clientContext.Web.Lists.GetByTitle(libraryName); clientContext.Load(list.RootFolder); clientContext.ExecuteQuery(); var fi = new FileInfo(fileName); var source = String.Format("{0}/{1}/{2}", list.RootFolder.ServerRelativeUrl, null, fi.Name); var spFileInfo = Microsoft.SharePoint.Client.File.OpenBinaryDirect(clientContext, source); using (var fs = new FileStream(fileName, FileMode.OpenOrCreate)) { spFileInfo.Stream.CopyTo(fs); } } }
How can I prompt the user to open / save the selected file (this should be the standard browsers download file prompts)? If they open the file it should open in the default application. The files could be any type (.xlsx, .pdf, .docx, .txt, etc.)
Many thanks
Duane
hj
SharePoint 2013 - People Search - Custom Profile Page instead of My Site
Hello - Is it possible to set the custom page when user click on the Person on the People Search result? By default it takes to the mysite. Default MySite is so ugly and doesn't give lots of details. We don't want to customize mySite and apply branding because we are not going to use other features of mySite viz. Newsfeed, blogs, etc. Also, we need extra user properties viz. previous employers etc. to show on the profile page.
We just need to show User's profile.
Any suggestions please?
Khushi
Anchor taging (#) doesn't work in Chrome for a Sharepoint 2013 site
On my Sharepoint 2013 site, I have created anchor tags (#). So, when someone clicks on a specific word, I want him to be directed to a specific point within the same page.
It works perfectly in Internet Explorer but not in Chrome. In Chrome, when I click on this specific word, I see the #word popping up at the end of the address location but nothing happens.
Any help is appreciated.
SingleTask activity in SharePoint 2013 workflow - Send Assignemnt Email
Hi,
I'm using SharePoint 2013 SingleTask activity to create and assign task. However, on task assignment, user is getting notification though the alert is disabled in list level. There's no property in SingleTask expect 'SendReminderEmail' to define in the activity
if I would like to send notification or not. Is there any way I can configure in SingleTask activity not to send 'task assignment' notification? My Single Task properties are given below:
Thanks,
Sohel Rana
http://ranaictiu-technicalblog.blogspot.com
Link multiple tasks lists to one central task list
Hi Guys/Gals,
I'm very new to SharePoint 2013 and require some assistance.
I manage 6 companies each has its own SharePoint team site within our group site. Put simply I run the marketing department for a group of companies. Each of the 6 companies has its own space within the marketing section of our SharePoint 2013 site.
Each company has a tasks section were each of companies marketing team enters the current/soon to task that each team is working on.
My issue is that I want to see every task each company has input into their tasks displayed on a central task list hub on the main landing page. Essentially I would like to populate one task chart with all the task currently being undertaken by each company.
So basically I am looking to create one Gantt chart/task list with all 6 companies task so I can easily see what jobs are at what stage for each company. I am looking to have this auto populate so each team can upload its latest task from which I can then see on the main site without delving into the sub sites.
Is this possible and how do I do this?? Please be as basic as possible as I am very new to this program.
Kind regards
Ross
Is it anno 2016 possible to update UserProfiles using JSOM, XAML Workflow instead of using the old (and hidden) SOAP service ?
I am looking for confirmation that if you want to update a userprofile, using webservices is still the only way to go.
I have found articles like this:
http://sympmarc.com/2014/02/04/spservices-stories-20-modify-user-profile-properties-on-sharepoint-online-2013-using-spservices/
http://it.toolbox.com/blogs/rymoore/updating-o365-sharepoint-user-profile-properties-with-c-61062
-------------
Let's start by updating the current users (your own) profile, but others (from a XAML workflow wiht elevated rights for example) would even be better !
To be clear, I refering to Sharepoint Online.
how to enable workflow version in workflow state machine using visual studio 2013
hi every body.
I created a state machine workflow using visual studio 2013 for SharePoint 2013 and it's work fine, but i have a big problem for changing and modifying workflow.
When I change the workflow that there are some running or completed instances, all the previous tasks and workflow histories are removed!!
How I resolve this problem ??
An error occured during SPLongOperation
Hi,
I have a quick question: How to hide the UI generated by SPLongOperation when an error occurred during the long operation? By default the UI (the spinning wheel and a message) stays on the screen.
Thanks,
Leszek
Wiki: wbswiki.com
Website: www.wisenheimerbrainstorm.com