Hot answers tagged

12

If you are using SharePoint 2013 or SharePoint Online, you can take advantage of JSLink to render your Status field as you want - in this case a button with some javascript logic behind it. The process would be very similar to the one described here: http://sharepoint-community.net/profiles/blogs/using-jslink-to-implement-delete-buttons-for-list-view. I'm ...


10

In a caml query, you will need to use <Today> token with OffsetDays. For e.g. <Where><Leq><FieldRef Name='Your_Date_Column' /><Value Type='DateTime'><Today OffsetDays='7' /></Value></Leq></Where> Reference: Using the Today token in a CAML query


9

You can create VMs on your Win 10 and on this VM-Hyper V - you can install Windows server 2012 and sql server 2012 for installing SP 2013. This and Bill Baer Blog may help.


6

Instead of removing sites in foreach try passing it to Remove-SPSite using pipeline: Get-SPSite -Limit ALL | Where-Object { $_.Url -Like "*personal*" } | Remove-SPSite Or shorter version: Get-SPSite -Limit ALL | ? Url -like *personal* | Remove-SPSite


5

Deploy your feature to Web Scope and enable the feature on your subsite. Register the event receiver (element.xml) with: <Receivers ListUrl="Lists/test">


5

You may use SPQuery to filter the items based on start and end date. DateTime startDate = new DateTime(Int32.Parse(year), 1, 1); DateTime endDate = new DateTime(Int32.Parse(year), 12, 31); SPQuery q = new SPQuery(); q.Query = "<Where><And><Geq><FieldRef Name='Date' /><Value IncludeTimeValue='FALSE' Type='DateTime'>" + SPUtility....


5

If you are asking whether you can leave files in a file share and access them through SharePoint with the out-of-the-box features then the answer is no. There are however, 3rd party solutions out there that you can look at such as the "File Share Library" by Bamboo Solutions or I believe AvePoint also has a solution. On the other hand, if you are asking ...


5

Let SharePoint do the work for you You can Filter by date in the View Filter settings, This shows the Items created in the Last Week: Important: You can use spaces (and linebreaks) in a Calculated Column Formula, but do NOT use spaces in this Filter Formula If you do, you get the most informative message:


5

As stated in the comments, you would need to structure your code in a way to get the result of the asynchronous operation, your code should be something like this: SP.SOD.executeFunc('sp.js', 'SP.ClientContext', getUserName); var user ; //declare this as a variable related to your current namespace, only here for demonstration. function getUserName(){ ...


5

You command should be look like this Export-SPWeb -Identity https://servername/path -Path C:\backup.cmp -ItemUrl "Lists/Mortgage Referrals" in identity complete URL of Site collection. at ItemURL you should not use '/' if it is on root of site collection.


4

Open with Explorer does not appear on lists, only in document libraries. Your list options would be Connect to Outlook, Export to Excel, Open with Access, Open with Project (depending on your SKU).


4

Create a list like ModalLogs with following column IsModalShownForToday Now find a item where Created By equals current user and Created equals Today and IsModalShownForToday is true. If you do not find any item by this filter, then show the modal and save a new item to ModalLogs list. Put the script in your master page. <script language="javascript" ...


4

You need to deploy a separate server dedicated to Office Web Apps that does not have SharePoint installed on it. In order to edit files in the browser, it requires a license that you can get through Volume Licensing. Getting the Office Web Apps installation now requires you to go through Volume Licensing, even though the product itself is free for read-only....


4

I'm afraid the only way is an ugly one (as often with workflows): Add a second column (and make it hidden) on the list to store the previous value of the comments field (let's say "Previous Comments History") When the workflow starts, make it compare the value of both columns "Comments History" and "Previous Comments History". If they're the same: copy ...


4

You can use Caching a DataTable Object The code in these examples suspends all other threads in a critical section running in IIS, and prevents other threads from accessing the cached object until it is completely built. This addresses the thread synchronization issue; however, the code is still not correct because it is caching an object that is not ...


4

Organizations use SharePoint to create websites. You can use it as a secure place to store, organize, share, and access information from almost any device. All you need is a web browser, such as Internet Explorer, Chrome, or Firefox. SharePoint can refer to one or more SharePoint products or technologies, including SharePoint Foundation The ...


4

When Collapsed is selected: Your list will appear like this by default: When Expanded is selected: Your list will appear like this by default:


4

In Central Administration, navigate to Manage Web Applications. Highlight the Web Application you're uploading to, then click on Blocked File Types in the ribbon. Find the file type, in this case json, and remove it, then click OK. That should allow you to upload json files, unless there are restrictions imposed elsewhere (e.g. IIS Request Filtering).


4

Your webpart is behaving like this because your are not handling postbacks correctly. Wrap all code in the Page_Load method with the following if(!Page.IsPostBack){ // Original code here } Some info about PostBack here: http://net-informations.com/faq/asp/ispostback.htm Or, just before your new databinding of the grid do this GridView1.DataSource = ...


3

I think you are almost there except that you have used assignment operator which will always return TRUE. Instead you have to use comparison '==' or '===' operators. update in below line EnabledScript="javascript:SP.ListOperation.Selection.getSelectedItems().length === 1;"


3

The reason there is an Edit Links hyperlink there is because you have the permission to do so, most likely by have the Design permission. If your users do not have that permission level access, they will not see the link. Also, when creating a subsite, there is an option to display the subsite on the parent's horizontal navigation, you may deselect the ...


3

No, You have to Uninstall the SharePoint foundation, Then Clean Install the SharePoint 2013 server. You can take the backup of Content DBs so that once you install the SharePoint server then you can use those.


3

If you are only looking to affect things within the main content portion of the page (and not the page title bar, quicklaunch, etc.), on wiki pages all the content is in a div with an ID like ctl00_PlaceHolderMain_WikiField. Knowing that, you could set up your CSS selectors to always start with div[id$='WikiField'] so that you will only be targeting ...


3

I think you can face problem as sometimes the profile synchronization timer job does not correctly synchronize the changes in the User name and Account name information. You need to execute the following Move-SPUser command (an equivalent of the STSADM MigrateUser command) for the user account in order to update the account name in SharePoint: Move-SPUser ...


3

If by custom .aspx page you mean Application page than obvious difference is that application page will have URL like http://sharepointsite/_layouts/YourSolution/ApplicationPage.aspx. And these application pages are shared between different Web Applications (not specific to a Web Application). On the other side you can built reusable Web Parts and use it ...


3

You can use powershell script to download and install all prerequisite files. https://gallery.technet.microsoft.com/office/DownloadInstall-SharePoint-e6df9eb8


3

From http://viewmaster365.com/365coach/#/Calculated_Column_Functions_List so that makes: =IF( SIGN( [PurchaseQty] ) >-1 , TRUE , FALSE ) or the same: = SIGN( [PurchaseQty] ) >-1 Note: SharePoint does type conversions for you, so [PurchaseQty] can be a Text Column, but if it does not contain a number representation you get a #Value error ...


3

Maybe your query is executing before receiving your search terms like it happened to this blogger: According to this article on technet, you could solve the issue by encapsulating your query terms like this: {?{searchTerms}}


3

Front end servers not only run Foundation Web service, but also the Timer Service (sptimerv4) which must communicate with SQL databases directly. Yes, SharePoint is secure if you set it up as such.



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