Hot answers tagged

4

How you can do this: Open your list and open the list settings Select the column "Plan start date" Under Validation setting type in the below formula : [Plan start date]<=[Plan end date] This help you to validate your dates before saving them. Hope this helps !


3

The only way I know is to export and import the list/library. Export your list in the source farm and import it to the destination farm. To export a site, list or document library by using Windows PowerShell To import a site, list or document library by using Windows PowerShell If you can manage to read an article then I prefer the below. Have a glance at ...


2

First of all, are both the farms running SharePoint Foundation? Are both the farms on the same patch level? If they are not running on the same patch level, you won't be able to restore a copied document library. Does any of the sites use the feature Publishing Infrastructure? Is versioning enabled? Do the library have custom permissions? There's multiple ...


2

After researching this error, I noticed there was no simple solution. Each person solved the errors in different ways. I have mentioned every solution I found. The easiest solutions are listed first. Solution 1: The new changes to the SharePoint 2013 workflow, there was also changes made to which account is used to write logs to the Workflow History list. ...


2

IMO, you're looking forward to a lot of problems if you really want to push all this data into SharePoint lists! First, you're hitting a number of hard or soft limits in SharePoint : no more than 5000 items per view, no more than 200GB per content DB, no more than 12 lookups in a query, etc. Second, conceptually, SharePoint is not a replacement for a ...


2

Even I have the same requirement. But Unfortunately we don't have any option like enforcing unique by combining 2 columns by default. Even I have researched a lot. But we can achieve this by using only info-path form. Hope the below link may help you ...


2

To add only like feature, It is needed to add two site columns in the list. Site columns are: LikesCount which GUID ID is 6e4d832b-f610-41a8-b3e0-239608efda41 LikedBy which GUID ID is 2cdcd5eb-846d-4f4d-9aaf-73e8e73c7312 Following is the code using(ClientContext clientContext = new ClientContext(targetSite)) { clientContext.Credentials = ...


2

Without fully knowing your list data structure, I'm thinking your query string should be formatted along the lines of : <Where> <Or> <Contains> <FieldRef Name='SeriousHarmQ1' /> <Value Type='MultiChoice'>Loss of consciousness</Value> </Contains> ...


2

I don't think there's a way to tell the edit form to automatically open the first item per se, but if you had the time you could create a page with a PageViewer web part that links to the edit form and then write some JavaScript code to look up the list through the CSOM, determine what the lowest ID is, and then replace the ID portion of the query string ...


2

They are all on virtual folders, that are really located in the database. You need to download and install SharePoint Designer, and then you can view, manage, and create any content you need. Seeing that you are a developer, this is really something you could use in your toolset. You can download the SharePoint Designer 2007 package here.


2

Instead of SPList you should use SPPictureLibrary. I mean SPList picLibCity = (SPPictureLibrary) spWeb.Lists["City"]; And instead of ImageURL, you should use ServerUrl. I mean foreach (var row in EmpList) { if (row.City!= null) { string group = row.city; SPItem lookupItem = picLibCity.GetItemById(group.LookupId); string ...


1

It turns out that the "Created By" field in SharePoint is a lookup column and can display/show a number of different values about the account. If you open the column to edit it, there is a property named "Show Field". In our case, someone had changed this to "Created", which refers to the date the account was created in the user information list. That is why ...


1

Do I have to call executeQueryAsync twice? Once to get the list items and the 2nd to act on all of them? Yes. Your first query gets the list of items (declare them in the parent scope, obviously, so that they are accessible on the success callback), and in the function of success callback, you can iterate through them to fire individual queries to modify ...


1

I can think of three ways in which this code has gone wrong. The long URL that you are mentioning is actually a view inside a site collection which is not the root site collection. Meaning that you are trying to access a the root site collection instead of the actual site collection. The easiest way of knowing this would be to check if there is a "sites" ...


1

You can delete it with the help of SharePoint Designer Open site Goto All files Select list folder Select your list There you'll have the view page Delete the page And voila you are done.


1

This can be done using a Designer WF and REST. The hard part is going to be if you need to allow multiple users to have access. Basically, you will need to add a field to your forms that you can enter the users. A people picker or text field will do. The text field can make it more likely that mistakes will occur, but I think will be easier to parse out ...


1

By using code from How to build a CAML query with several nested OR's using a loop and its answser http://sharepoint.stackexchange.com/a/167266/35604, you can easily simplify your code. Now you have all these methods that help you building nested Or and And queries, simply do this: List<string> queries = new List<string>(); if ...


1

The icon URL is: http://your-sharepoint-url/_layouts/15/images/ For example: http://your-sharepoint-url/_layouts/15/images/icdocx.png


1

String myURL = "<your site URL>/_vti_bin/owssvr.dll?Cmd=Display&List={List GUID}&XMLDATA=TRUE"; HttpWebRequest myRequest = (HttpWebRequest)WebRequest.Create(myURL); myRequest.Credentials = CredentialCache.DefaultCredentials; HttpWebResponse myResponse = (HttpWebResponse)myRequest.GetResponse(); Encoding enc = ...


1

I would try adding a calculated field on the Product list, and use it to build a link to the Order one. Let's start from the url. "http://someSite:somePort/Lists/Order/AllItems.aspx?View={ViewId}&FilterField1={ProductFieldName}&FilterValue1={ProductValue}" By using a query string like the one above you can create an url that will link to the ...


1

If users are required to authenticate then it would be the "username" probably email in case of sharepoint online or if they are not required to authenticate then it would be "Guest Contributor" in the modified field. more detail here and here


1

Each SharePoint site collection has list galleries. You can upload a list template into the gallery and it will become available on all sub sites. To do that, first create the list. Then open list settings and select "Save list as template". Choose to not include content. This will create the list template in the gallery. Now you can go to any of the sub ...


1

through powershell or c-sharp code


1

If you want to show the total number of items shown in a pie chart you can use the DataTable class's getNumberOfRows() method to get the number and then display this number somewhere on the page next to the pie chart. See reference here: https://developers.google.com/chart/interactive/docs/reference#DataTable If what you meant is you want each slice on ...


1

Turns out the Managed Property mapped to my Crawled Property for this column had an unchecked "Searchable" box. Checked it, ran a full crawl, and now the list search is working like a charm. #themoreyouknow!


1

With Workflows you can use Create List Item and Update List Item actions so that whenever a user adds a value for Blue the amount will be added in another list's column which contains the previous amounts already.


1

Using a workflow, you can set an action to Pause Until Date. In the date field, use your Review Date or a variable that is set to Review Date. Basic workflow logic: Pause Until Review Date If Review Status = New Set Review Status = Review Needed Little more info on the topic: "Pause until Date" workflows unable to handle changing ...


1

If coding is option, Then you can create a timer job or console application and then schedule it to run daily. It will check whether today is review date and update the status accordingly. The code will be something like below using (SPSite site = new SPSite("Your site URL")) { using (SPWeb myweb = site.OpenWeb()) { SPList olist = ...


1

Did you follow the below step(see image) mentioned in the article, https://blogs.technet.microsoft.com/tothesharepoint/2013/09/06/how-to-display-values-from-custom-managed-properties-in-search-results-option-1/



Only top voted, non community-wiki answers of a minimum length are eligible