Tag Info

New answers tagged

0

This should be a good start: http://blogs.technet.com/b/sharepoint_quick_reads/archive/2013/08/02/sharepoint-2013-customize-display-template-for-content-by-search-web-part-cswp-part-1.aspx The writer explains what Display Templates are, how they work, and how you can add your own or edit already existing ones to your needs.


0

All that stuff your momma taught you about "never use HTML tables for page architecture"? Ignore it! SharePoint lives and breathes tables, right or wrong. Shamelessly slap a two-column table on your page and cram a web part into either cell. Style the table cells as necessary to obtain the desired widths, and get over those feelings of shame and guilt that ...


0

Instead of creating a separate webpart. You can use the JavaScript code directly in a Content Editor Webpart. Or Script Editor Webpart in case of SharePoint 2013.


0

If I understood your question, you want to add a web part to a page and set it as default. So you can add the web part in this way: # Add PowerShell Snapin $snapin = Get-PSSnapin | Where-Object {$_.Name -eq 'Microsoft.SharePoint.Powershell'} if ($snapin -eq $null) { Add-PSSnapin "Microsoft.SharePoint.Powershell" } # Get the Site URL $SiteUrl = ...


2

Yes. First you should register the ascx file in the Markup of your webpart <%@ Register Src="~/_controltemplates/15/Folder/Page.ascx" TagPrefix="uc1" TagName="PageAscx" %> Then add the control using <uc1:PageAscx runat="server" id="PageUC1" />


0

The problem may be that you use an elevated section, meaning the code runs under the identity of System. However, the page is being edited by (and checked-out to) the current user, the one who clicked the button. Thus, the error probably means the code cannot edit a file checked-out by someone else (and you never reach you page.CheckOut()call by the way). ...


0

The best way I can think of to accomplish this OOTB would be to create another list rather than using a choice filter. This way the users would be saving the same item instead of it reloading every time the page loads. With this new list, create a choice field of the options you need like you would for the filter. Then create one item in that list. Use ...


0

You could save the choice filter selection into a cookie with javascript, then read it on every page visit and set the choice filter value accordingly


0

You need two separate web parts. For the first, Edit Web Part > Edit the Current View > Sort by Created By / filter by some sort of open value Item Limit = 3 For the second one, there is no way (without doing some custom code) to show just the remaining records. You'll have to show the whole stack in the other one, sorted as you'd like.


0

Try: foreach (SPListItem item in collListItems.ToArray()) { item.Delete(); } Or use a for loop instead.


0

I think what you're asking is why you're getting that message. I think it's because you're deleting an item within an enumeration - collListItems - which modifies the enumeration to that it can't, um, enumerate. Instead, build a list of the things you want to delete, and then work through that: List<SPListItem> toDelete = new ...


1

There are multiple ways to edit the "InfoPath Form" associated with your site. Generally, the InfoPath Form will be associated to an existing list or library on your site. There are two main methods, to updating the form. Firstly, InfoPath using Browser. Secondly, SharePoint Designer. InfoPath To customize your list form in the browser, just browse to ...


1

If you only want the users to be able to work with documents, you can break the role inheritance on the document library. Then you give the editing users higher permissions only on that library and not on the whole site. Details on how to break permission inheritance is found here


0

I have never heard of users in filters. This will get to be a pain to manage when new users are added. I would suggest creating 2 lists: ShiftA and ShiftB. Then create 2 SharePoint permission groups ShiftAGroup and ShiftBGroup that can view their own list only. Then on the web part page you place both lists out there. You as the owner/admin will see ...


0

The most important thing to consider is to know if your ER is synchronous or async. This is determined at the ER registration time: how do you register it? In your case, asyncrhonous would be best: the copy operations would be performed on new dedicated threads (one per concurrent file), and would not block the users. However, you stil may encouter ...


1

To stress test this, your best bet would be a PowerShell script adding multiple items with various Sleep intervals. Will it scale to several hundred users? It depends. Mostly on your server's hardware resources, how SQL is setup, the solution itself, how large are the documents etc. Personally I don't think there would be an issue, as I remember doing this ...


3

From the Excel Web Access Web Part it's not possible to edit the workbook in such a way that you save content. Excel Web Access is a Web Part. It can display all or part of an Excel workbook, and enables interaction with the workbook in a browser by using Dynamic Hierarchical Tag Markup Language (DHTML) and JavaScript. Because Excel Web Access is a ...


2

In your Ajax code, we read: url: "/Layouts/SendUsEmail/Handler1.ashx", While it should be: url: "/_Layouts/SendUsEmail/Handler1.ashx", note the '_' in front of "Layouts".


0

You can use the normal method of creating custom property. And for the textbox you can choose TextMode as follows txtPassword.TextMode = TextBoxMode.Password; Here is an example on how to implement this https://rmanimaran.wordpress.com/2011/02/27/sharepoint-webpart-custom-properties-password-field-as-property/


0

This simple fix worked for me.


0

Watermarks are easy to create using following CSS. Add the following to the HEAD of your site page. Change the URL of background-image. <style> body { background-image: url(image.gif); background-repeat: no-repeat; background-attachment: fixed; } </style>


0

I think the best solution for that is called jslink. https://msdn.microsoft.com/en-us/magazine/dn745867.aspx


0

There is a catalogpage for webparts in your site URL here /_catalogs/wp/Forms/AllItems.aspx click new and check the box preceding Microsoft.SharePoint.WebPartPages.ContentEditorWebPart click the populate button to commit your changes.


0

To enable Content Editor web part you should activate BasicWebParts feature on that site. You can do this using following PowerShell script. Enable-SPFeature 00bfea71-1c5e-4a24-b310-ba51c3eb7a57 -Url http://siteurl


0

SharePoint 2013 uses App Model for development. So you need to take a decision what approach you should follow. Also SP 2013 encourages using CSOM as opposed to Farm Solutions. If you have only limited time, then I think you can directly deploy 2010 solution and test what functionality is breaking, then try to fix only that.


0

Search queries cannot return null values. If a value is null it is not included in the index. You have to find another approach or use Content Enrichment to detect the null value and set a second fields value indicating that your value is Noll. This is one case were Search Query is not like SQL.


0

You can get SharePoint List items using this code: string siteUrl = "http://MyServer/sites/MySiteCollection"; ClientContext clientContext = new ClientContext(siteUrl); SP.List oList = clientContext.Web.Lists.GetByTitle("Leave Request"); CamlQuery camlQuery = new CamlQuery(); camlQuery.ViewXml = ...


1

There is no OOTB webpart available for this activity. But you can create a custom Web Part for this. Programmatically find out the number of site-collections within a web application. SPWebApplication.Sites would help you get the site-collection present inside web application. Check these for more info: ...


0

Found a solution. Since the old WebPart had its own div-element which was still in the page (even after deleting the WebPart with the SPLimitedWebPartManager) I was able to swap the IDs in the div without adding any extra HTML-code and thus keep the position. Here's the updated Code (just the functionality, without error handling etc) if someone runs into ...


0

Are you adding your RichHtmlField controls to asp:ContentPlaceHolder ID="Main" or you've created some additional placeholders? If the second is true for you that build your master page in such a way to place the Main placeholder as the last one of used placeholders.


0

"However, not all user interface elements are displayed in the secondary, preferred language. The following list includes examples of items that are not supported by the multilingual user interface: Web Parts (except those that are linked to lists or libraries)" Source: https://technet.microsoft.com/en-us/library/ff805062(v=office.14).aspx


0

As Amal said you should try not to put duplicate code blocks on your page. You could either make your code generic (looks up the web part GUID etc.) or use just one codeblock for both. Answer for one code block In jQuery you can use a selector with a comma as separator such as [webpartid="firstID"],[webpartid="anotherID"] to find both target Web parts' ...



Top 50 recent answers are included