Tag Info

Hot answers tagged

3

Why are you using the client side ID. Use the server side ID "abc". It will work. Regards.


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 ...


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

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.


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 ...


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 ...


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; }


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 ...


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); ...


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 ...


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

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 ...


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

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 () ...


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.


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.


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 ...


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"] ...



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