Tag Info

New answers tagged

0

Make sure you are using correct ListName and it exists in the Site. Try below $webUrl = "http://site.fr/" $w = get-spweb $webUrl $listName = "Qualified Information" $l = $w.Lists[$listName] write-host $l.Title


0

It should be $w.Lists and not w.Lists It seems you missed the $ sign.


2

I had the same experience when migrated our SP2013-based AngularJS solutions to SP2010. The problem was in our case a kind of timing issue. The solution was to introduce a 1-2 seconds of delay in the controller before calling the methods of our SharePoint service: setTimeout(function () { $scope.getContacts($scope, mySharePointService); }, 1000); ...


0

Check that you have the appropriate content types added to the document library. Go to the document library > library settings > add from existing site content types > choose your content types, e.g. Document, Document Set > OK.


0

SharePoint Designer workflows run as System Account but with their permissions trimmed down to impersonate those of the user that initiated the workflow. We faced a similar issue to yours in our SharePoint environment and identified that it was due to workflows being fired automatically by System Account. To get around this, we created an administrative ...


1

Assume the list contains the following data: ID ListingOrder 1 1 2 null 3 2 Then you could consider the following options: Option 1 The items could be sorted in descending order: $orderby=ListingOrder desc, in that case the items for those listingorder property is not specified will be listed as the last ones. Result: ID ListingOrder 3 2 1 ...


0

In SharePoint Central Admin, you can create a Scope that can be applied to particular search facilities. A scope can include/exclude URls that you define so for example, you could create a scope that only includes the URL for your two document libraries and apply it to your search box. Note, you should only include the URL to the library such as ...


1

As others have said, this could be because the event receiver is registered multiple times. But to me, it looks like this is happening because you have this ItemAdded event receiver registered for both the "Jawna" and the "Niejawna" lists and you're basically trying to create copies of items between the two lists. To get around this you should disable event ...


2

Disable Event Firing when you're making the update to the item. See here for an example. Make sure you don't leave the events disabled, though! Wrap the code in a try, catch, finally that ends with re-enabling the events. try { this.EventFiringEnabled = false; // Your updating code... } catch (Exception ex) { // Handle exception } finally { ...


2

From your code it seems you are using the same code for handling ItemAdded on both the lists. So what is happening is on inserting item in 1 list is inserting an item into the second list. And this invokes the event receiver in Second list. Two possibilities. You might have attached the same event receiver 5 times - You can review this using SharePoint ...


0

So i resolved this issue. New folder of List must be added like new ListItem by List.AddItem(ListItemCreationInformation parameters) method. Just need to set ListItemCreationInformation.UnderlyingObjectType to FileSystemObjectType.Folder. Example: List listCopyTo = ClientContext.Web.Lists.GetByTitle("ListName"); ListItemCreationInformation newFolderInfo = ...


0

Add (site:UrlOfLibrary1 OR site:UrlOfLibrary2) as additional query terms


1

You can use two queries in that case. First query - Get all items filter by ListingOrder not equal NULL Second query - Get all items filter by ListingOrder equal NULL Apply Order By only on First Query. Then merge the result sets.


1

The changes can be made in site definition files. If the site created by you is using custom site template(You have created template) you can set it in the onet.xml file of the Site definition. In the onet.xml, refer the module in the configuration and define the module int he following way <Modules> <Module Name="Default" ...


1

I have figured out what the problem was. Apparently there were some files in the folder that exceeded the filename character limit of 256 characters. After I shortened the filenames the files became visible again when I opened the folder with explorer.


0

Found how to resolve this matter : SPField field = myList.Fields["MultilineColumn"]; SPSecurity.RunWithElevatedPrivileges(delegate() { oWeb.AllowUnsafeUpdates = true; (field as SPFieldMultiLineText).RichText = true; field.Update(); oWeb.AllowUnsafeUpdates = false; }); //Then add html to the multiline column.


0

I had a list where I needed to edit multiple items and used the following process to get it done; Select the list view from the toolbar ribbon and then select Datasheet view from the submenu items. This will convert your view to an excel like spread sheet. Sort the columns and then sort by the column you want to edit to have the target cells listed ...


0

The property that you are looking for is Target Audience in the web part properties. Create a new view with the filter based on the creators groups. Create a new page or edit your existing page and add both views in that page, one below the other. Set the Target Audience in web part properties of the page. The target audience so works that if it is ...


2

If all these pages are on the same site you could look at using the sites property bag. Read in Property Bag values var ctx = new SP.ClientContext.get_current(); var site = ctx.get_site(); var web = site.get_rootWeb(); var webProp = web.get_allProperties(); ctx.load(web); ctx.load(this.props); ctx.executeQueryAsync(); To set the property ...


3

You can access the Site's Property Bag using the JavaScript Client Object Model. Here's a walkthrough: http://www.jeremythake.com/2013/10/using-the-sharepoint-csom-api-to-get-a-property-bag-value/


2

A few options: Write the value to a list on the site (it may only have a couple of columns and a single row if it's just storing one value) and read that. Create a single frame in the window and use JavaScript to navigate through the pages. You can either read from this frame's JavaScript or by tacking a query string onto the links on the page and reading ...


0

In order to search on date values from SharePoint fields you must set up a managed property that maps the crawled property of your SharePoint field, then do a full crawl. After that type in the managed property name : value. For example datefield:12/31/2009. Check this Manage metadata properties for search (Search Server 2010)


-1

You have to make sure the following things in order to open the PDF in browser. There are two options available Browser File Handling should permissive for the web app, you can change it using the Central Admin > Manage web Application> Web Application General Settings. this is kind of security risk. Explicitly add PDF to allowable list of MIME types in ...


1

You can also fix in this way. SP.SOD.executeFunc('sp.ui.rte.js', null, function () { if (/var \$v_0 = RTE\.Selection\.getSelectionRange\(\);[\r\n\t ]*var \$v_1 = \$v_0\.parentElement\(\);/.test(RTE.Canvas.checkCurrentFocus.toString())) { var _oldCheckCurrentFocus = RTE.Canvas.checkCurrentFocus; RTE.Canvas.checkCurrentFocus = function () ...


0

I resolved this problem by editing regionalsetng.aspx in the LAYOUTS folder. Adding disabled="disabled" to asp:CheckBox id="ChkFollowWebRegionalSettings" has the desired effect.


0

Here is a link to some useful info from Stack overflow, it isn't SharePoint specific but may help you out? http://stackoverflow.com/questions/126772/ Or http://stackoverflow.com/questions/126772/ Or if this is just your browser/client problem you can hit CTRL + F5 to force refresh on the page. If users haven't seen the original image they will see the ...


0

The only way I can think of is to put some random number in Query String of the URL of image like: <img src='/Assets/myPicture?v=1414224214' /> You might need to inject some JavaScript to generate the image URL with random number. Once the browser finds new query string it will reload the image.


0

I wish this forum would be more active. Anyway, I only had to wait until the Content Type Hub and Content Type Subscriber timer jobs to complete and then they were visible.


0

The following example demonstrates how to order Posts by Category field. But there is one important note here: Since Category field is a multiple choice field value, it is assumed that only one category could be specified per post. For that purpose FirstCategoryTitle property is introduced which represent the title of first category in ...


0

I cannot comment your post yet, so I take a shot at answering. Have you checked in your view parameters that you are allowing the folders to be displayed ? One other thing, in your List advanced settings, do allow folders to be created in your list ?


1

You could use some JavaScript instead. Check if the search field is empty on page load. If it is, hide all the items shown on the page. If it is not, the user must have done a search, so don't hide the items.


1

why do you use the list view at all? simply make a new site, place a search and a searchresult Webpart on it and edit the query to search in the title (or path) of the files only.


0

Are the files checked out maybe? Or not published as a major version? This is the most common reason. If you have full permissions on the library/site, head over the document library > library settings and under "Permissions and Management" there should be a link that says "Manage files which have no checked in version". Go there and see if there is any ...


0

Check if the list contents are enabled for searching. Go to List Settings --> Advanced Settings and see if Allow items from this list to appear in search results? is marked as "Yes". Also, make sure that Search Service Application in Central Admin is crawling your content.


0

If they are audiences and not AD groups or Sharepoint groups, then it is probably an underlying GUID mismatch and it can't be resolved. While named the same, they have unique GUIDs under the hood on the Devs machine and the QA/Prod environment. This is most likely where the problem is. At a previous employer, they had news which was heavily reliant on ...


2

In this case, the list that you would want to show the related information, you would create a lookup column to your list that has the prospect content type associated to it. In the configuration of the lookup column, you can select additional columns from the list item to bring over into the list.


0

You can grant another person permissions to view all items in the list by granting that person Manage Lists permission on your list.


0

If this is the only server in the farm then you have to rebuild the farm. As you said, you have the Content DBs then it is easy to recover. Most important, Clean Uninstall. Remove all the folders on sharepoint path, clean the IIS etc. No left over should be on the server other wise it will cause issue for new install. Install the SharePoint on the server( ...


0

Does the list have any calculated columns? If so then PowerPivot cannot connect to such list


1

The key solution for your problem is: Re-install SharePoint and create a brand new web application. Detach the content database via powershell Attach content DB This will restore the site collections and the associated content from the old content DB. You can refer the scripts and complete details in the below article: Here


1

In your workflow, you would us an if/else branch to build a dynamic string (using the set workflow variable action) based on some condition. The key is to output the strings to the same variable. Then in your email body, you insert this variable into the body. Then when an item is submitted, based on the list metadata, it selects the appropriate string and ...


1

You can put Iframe on your web part and assign document url to iframe url, or you can setup office app web server and you can display word as noraml on the browser by using this event when use click on the document onclick="return ...


0

One option is to Save the word document as an HTML file. Then upload the file into a document library. Then use Page Viewer Webpart to display it.


0

None of the above should be necessary. The "Action" options are dependent on the view used. Open the "Overview" view, click "Actions" and the export option magically appears. There's no way anyone would know this so this is a good example of the bad design / UX that plagues Sharepoint.


2

You can add an Event Receiver with following event you can set OnQuickLaunch=false so for every list you create the ER will be executed and you can hide list through it public override void ListAdding(SPListEventProperties properties) { properties.List.OnQuickLaunch = false; }


3

In reality what happens if you create for instance a list named Tasks, is that two extra navigation items are added to quick launch navigation: a header labeled Lists, and a child of it named Tasks. To answer your points Is it possible to set default No using OOTB? If you're in control of the list template used for the list (so it's a custom ...


0

This is not posible OOTB. Only way you can check this "No" while creating a list or library, just press "More Options" button: When you Name your list and select that option to show in the left navigation, so you don't need to go to List or Library settings to change it after creation.


1

You can use PowerShell to get this information Function GetFiles($folder) { Write-Host $folder.Name foreach($file in $folder.Files) { Write-Host $file.Name } foreach ($subFolder in $folder.SubFolders) { GetFiles($Subfolder) } } $web = Get-SPWeb http://weburl $list = $web.Lists["ListName"] ...


0

The secret is the formulas are the exact same ones used in Excel. Make a spreadsheet with a column of test data, some valid and some not, and then built up logical formulas in a nearby column. You'll know you have the formula right when the formula column says "TRUE" for all the valid test data and anything else for invalid data. It doesn't have to say ...


0

finally i found the simple funny hack. my site templates emails does not work after importing to new sites and here is the solution go to your site ->all files->workflows-> workflow in SharePoint designer click and open the workflow and then open your workflow XXXXXX.xoml.wfconfig.xml file change Association ListID with the id of the list in the XML ...



Top 50 recent answers are included