Tag Info

Hot answers tagged

5

The following example demonstrates how to determine whether current users belongs to the specified groups: getCurrentUserWithDetails() .done(function(data) { var groupNames = ['News Owners','Approvers']; //determine wether current user is a memeber of group(s) var userGroups = data.d.Groups.results; var foundGroups = ...


4

For reasons of security, by default, Microsoft SharePoint Foundation does not allow you to make posts from a Web application to modify the contents of the database unless you include security validation on the page making the request. You can update data for a single site or for a site collection by adding a page directive and a FormDigest control to the ...


3

You need to set Indexed boolean property of SPField for adding/deleting index on a column. Example code to delete the existing Indexes: using (SPSite site = new SPSite("http://yoursite")) { SPWeb root = site.RootWeb; SPList list = root.Lists["L2"]; SPFieldCollection fields = list.Fields; for (int i = 0; i < fields.Count; i++ ) { ...


2

This should help you out. You might want to tidy up the code that checks the welcome page against the current URL - at the moment it's just doing an indexOf. var context = SP.ClientContext.get_current(); var web = context.get_web(); var rootFolder; var welcomePage; function getWeb() { context.load(web); rootFolder = web.get_rootFolder(); ...


2

In order to https Url work, please make sure following things. SSL Certificated added to the Web front end servers Bind the SSL certs to Web App Update the Https url in AAM.


2

You can use Audit Feature of SharePoint for the same: Configure audit settings for a site collection On the site collection home page, click Site actions, point to Site settings, and then click Modify All Site Settings. On the Site Settings page, in the Site Collection Administration section, click Site collection audit settings. Select the events you ...


2

Keeping them in the same feature will also work, just make sure the Parent list is up in the hierarchy of feature items.


2

Two things to check. Make sure "Windows SharePoint Services Administration" & "Windows SharePoint Timer Services" is running on all server in the farm. check in service console. check the SQL server if account under which you are running the script have proper permission to access it. Also check the ULS logs for more details.


2

Easy. You want to edit the Announcements web part and change the view. You could modify the existing view to remove the columns you don't want, or open the Announcements list and create a new view that only has the Name (linked to document) then use that for your web part. Here's a short guide.


2

Create a Yes/No column. Call it "sticky" or whatever makes sense in your environment. Then configure your views to sort by the "sticky" field. Go to the list ribbon and click "Modify View". In the sorting options choose to sort by "sticky". Your "sticky" items will always show up first:


1

Try this var context = new SP.ClientContext.get_current(); var web = context.get_web(); var list = web.get_lists().getByTitle("DocLibrary"); var query = new SP.CamlQuery(); var caml = "<View><Query><OrderBy><FieldRef Name='Modified' Ascending='FALSE' /></OrderBy></Query></View>"; ...


1

For extracting you can use Solution Extractor Tool from below link http://blogs.technet.com/b/patrick_heyde/archive/2009/08/28/how-to-extract-wsp-files-from-sharepoint.aspx Once you have extracted the wsp. You can use PowerShell for installing it into your SharePoint 2010 environment. Add-SPSolution c:\path\wspname.wsp Install-SPSolution –Identity ...


1

The BCS framework does support an OData-backed data source. (OData describes the payload format - REST desribes the URI naming scheme.) However, you cannot create a BCS Model for an OData data source using SPD. Visual Studio will automatically generate one, or you can code it by hand. In either case, you can use the BCS Service Application web interface to ...


1

I don't think so. ItemUpdated is asynchronous, so by the time it fires, a response has already been sent back to the browser. If you do not have access to the HTTP Request and Response, you can't tell the browser to redirect.


1

It is not. Explorer opens up a connection to the library and you see everything that you can see based on your permissions (namely non-approvers not seeing drafts). The only way to filter it is to map that folder to a drive, search for whatever it is you want to filter by and then save that search in Explorer, but that won't be at the same level of ...


1

This is a default security feature of most (all?) modern browsers: links of type file:// are not allowed, that's why you don't see any result when you click on them. There is a workaround that only works in Internet Explorer though. If you add your SharePoint site to the Trusted Sites zone, then file:// links will work.


1

A few items you will want to validate: You will want to ensure you have the SharePoint Services Timer and SharePoint Administration Service enabled, and set to automatic start. Likewise, you can manually start them from the command line using the following commands: net start SPTimerV4 net start SPAdminV4 Additionally, the resource I've used ...


1

Also note that adding a new AAM does not automatically create the IIS bindings. You will need to configure them manually (select the web site in IIS and add the new binding) as they are only created if you extend the web application (which would probably be better in your case).


1

Have you used java script code for that or you are doing it by code behind? As Update panel is not supported in Office 365 environment. It is working on SP2013 on premises environment. if you had handled that using Update Panel trigger than it is going to be refresh. you can use java script code to Add/Remove multiple dynamic controls. ...


1

There are many ways to achieve this. (Note out of the box this is not possible) You can easily use SPServices along with jQuery to read the data and modify the list view to show the images. https://spservices.codeplex.com/wikipage?title=GetListItems http://www.sharepointusecases.com/2014/04/replacing-strings-icons-list-view-jquery-sharepoint-2010/


1

Try using $expand as below http://win-f898lhd0rn9//_api/web/lists/getbytitle('BudgetConcerneLD')/items?&expand=IPS_Personne&$filter=IPS_Personne/Id eq 1


1

I did it (using .net reflector for visual studio 2013), and now I can debug the core SharePoint dlls easily. but the issue is, this is a trial version, I'm still need clean source code :( , I'll try to figure out how reflector do it and do the same. Note: I think it is worth to write articles about this.


1

This is a very bad idea. You can't just simply take source code and create a dll out of that. There should be dependencies and on top of that these dll's will be signed with a KEY. Which only Microsoft Has. You can use Reflector and read the code and understand what is happening behind the scene.


1

Use c:0(.s|true to add Everyone to the group. using (SPSite site = new SPSite("http://yoursite")) { SPWeb root = site.RootWeb; SPGroup group = root.Groups["GroupName"]; SPUser user = root.EnsureUser("c:0(.s|true"); group.AddUser(user); group.Update(); }


1

The SPContext.Current.Site.WebApplication.GetAbsoluteUrl() will return the URL based on the protocol you are accessing. For example, if you are using http://SPExample.com it will return http://SPExample.com, likewise, https://SPExample.com will return https://SPExample.com. However, as Nadeem mentioned, the best way to verify would be to debug and examine ...


1

As far as I know, and as I have already wrote in this thread, the SystemUpdate and the UpdateOverwriteVersion methods are not implemented in the Client OM and in the REST API. If you decompile the Microsoft.SharePoint assembly (for example using Reflector or JetBrains dotPeek), you can see the lack of the attributes on these methods, that would be needed to ...


1

If the PDF files are opened in the browser, then it means you have either configured the Permissive mode in Browser File Handling, or added the PDF extension to the allowed MIME type list. (see Option #1 and #2 in this post for details) To have the PDFs opened in Acrobat, you should disable the Permissive mode (and set it to Strict mode) and if it is ...



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