Tag Info

Hot answers tagged

3

First thing, you make sure you are recording the Deletion in your audit log. you can check here Configure audit settings for a site collection Now following events available for audit log reports The following events are available for audit log reports to help you determine who is taking what actions with the content of a site collection: Opened and ...


3

Using List.Hidden property to make it hidden from UI is not enough to prevent users from accessing it. Consider to utilize List.BreakRoleInheritance to specify unique role assignments for a List, for example: var list = ctx.Web.Lists.GetByTitle(listTitle); list.Hidden = false; list.BreakRoleInheritance(false,false); //clear role assignments for a List ...


3

If you love the Powershell. Then you create a new Permission level call add-only and assign this permission level to all user who you want add items. Give other person(who can view the items) as full control/ edit or whatever you want to give them You can create an add only permission level using the following PowerShell script. $spweb=Get-SPWeb -Identity ...


2

You could also mimic this functionality with a drop-off library (part of the Content Organizer for all 2013 versions, including SharePoint Online) -- having it move all of the documents there somewhere else after they are uploaded. Then you could have whatever permissions you wanted on the destination libraries


2

Yes you can do this through Permission management. Remove everyone permission after uploading it. The farm administrator will be able to see it anyway.


2

You just need to do it the other way round. Make it: Approval Status is equal to rejected OR Approval Status is equal to pending AND Created by is equal to [Me] which gives you (a OR b) and c.


2

I accomplished this by using the following als document link, if the user clicks it the document is opened in the online word viewer. Depending on your server configuration, this might not work for all file types. [site URL + Library location]/_layouts/WordViewer.aspx?id=[document URL]


2

You start by setting default values to metadata, the default values for these 30 documents. Then, you upload them and you they have the right metadata. For the second question, you filter these documents and then you go to datasheet view. Then, you open an xls file and you fill the particular metadata in 30 cells. You copy them (ctrl-c), you go to the ...


1

Use following code to copy documents : public static void CopyDocuments(string srcUrl, string destUrl, string srcLibrary, string destLibrary, Login _login) { // set up the src client SP.ClientContext srcContext = new SP.ClientContext(srcUrl); srcContext.AuthenticationMode = SP.ClientAuthenticationMode.FormsAuthentication; ...


1

There is no difference. Type of list defines the destination content type in elements.xml in event reciever feature


1

You can view the hidden fields using SharePoint Designer. Navigate to your Library and click edit list columns in library using designer. Refer the below screenshots:


1

Go to Library settings -> then click "Change new button order and default content type". From there you can select which content type to be shown on new button. And programmatically you can do this by: SPContentType oCT = spList.ContentTypes[ctName]; oCT.Hidden = true; oCT.Update();


1

You can use the Sharepoint Manager tool to compare the properties. You can download it from: http://spm.codeplex.com/


1

You can break the inheritance of these document library and remove their link from quick launch. After breaking its inheritance, remove users from its permission settings who should not access to this document library. It should work like a charm!


1

You have to break the permission of the list, create a new role and assing it the to group. Then assign the role to the list. $list.BreakRoleInheritance($True) $group = $web.SiteGroups[$GroupName] $roleAssignment = new-object Microsoft.SharePoint.SPRoleAssignment($group) $roleDefinition = $web.RoleDefinitions[$PermissionLevel]; ...


1

This is working: <script src="https://code.jquery.com/jquery-1.7.2.min.js" type="text/javascript"></script><script> $(document).ready(function() { $("a[href$='.pdf']").removeAttr('onclick').attr("target","_blank"); }); </script>


1

In a content editor web part source editing, you add the following script: <script language="javascript" type="text/javascript"> _spBodyOnLoadFunctionNames.push("SetTargetBlank('/InsertListNameHere/')"); function SetTargetBlank(ToFindInLink) { // Get the collection of <a> tags var aAllLinks = ...


1

You can try following code to avoid this: if (properties.Versionless) { base.ItemUpdated(properties); } Explorer view The first event trigger Versionless will be false and in the second one will be true. Normal Upload The first event trigger Versionless will be true. This helps the event handler code to behave the same way for both scenarios. ...


1

As you mentioned, "To open the file in Office client application you use the Edit link in the preview box no more “Edit in Microsoft Word”. This is the way to open/edit document into the Chrome Browser. As these browser supported but you will still face some difficulties as compare to IE. I would recommend always use IE unless their is requirement. Also ...


1

SharePoint is not be blamed for the varying behavior but it is the browsers. The browsers cannot be completely uniform in features and functions. Each has its own capabilities. The behavior also changes when using a different SharePoint and browser versions. The Open Document window we are encountering since SharePoint 2010 in IE browser. But we never ...


1

There is no "Publish" you just save the document and it will default to the source Library. If they edit it in the browser it will save back to the Library as well. The user has to have sufficient permissions to perform the task, in this case they need Edit rights.


1

This kind of issue when you get multiple login prompts when opening / adding documents usually can easily fix by adding the site in the Trusted zone. To add site into Trusted zone Please follow instructions: Add your site to the Trusted Sites Internet Zone. Go to Internet Options - Security - Highlight the Trusted Sites Check Mark - click on custom level ...


1

First thing to try: listItem["MyFirstTextField"] = "Blah"; //works fine listItem["TextField_x0020_WithSpace"] = "string"; //doesn't work listItem["MyFirstBoolField"] = true; //doesn't work listItem.Update(); Remove the Properties part.. The above actually consider you provide the Internal name of the fields, the internal name is obviously different from ...


1

You can get the list url from the get_defaultViewUrl method... when you load the lists you need to use the include statement to retrieve the defaultViewUrl property (it isn't included with the list results by default). Change your context.load line to: context.load(lists, 'Include(Title,DefaultViewUrl)'); Then inside of your iterator loop you can use ...


1

You cannot control the File Size limit at Document library level OOTB. What you need, you have to write your own code may be some event receiver. Check this code from this post { long validFileSize; long currentFileSize; if (properties.ListItem == null) { using (SPWeb web = properties.OpenWeb()) { ...


1

As you said, you can modify the size limit in the web application and IIS. Out of the box, you can't adjust this for a list/library. A possible solution would be to create your own form for "new item" that would check for the file size before uploading it to the document library.


1

Thanks for the responses, Actually I came across a remedy in a similar article Referring to tha post answer, in my code I invoked the below javascript OnClientClick event of the LinkButton. function setFormSubmitToFalse() { setTimeout(function () { _spFormOnSubmitCalled = false; }, 3000); return true; }


1

Alright, so after hours and days of digging thorugh thousends of lines of sharpeoint javascript code I finally managed to hook into the document drop event. Setting JSLink First you have to assign a Javascript file as JSLink to the document library view. Javascript code In that javascript file I then used the following code // Load base script file if ...


1

You cannot get the document icon as a property, you will have to make the url for it. SharePoint has already lots of icons available in the DOCICON.xml file at C:/Program Files/Common Files/Microsoft Shared/web server extensions/14/TEMPLATE/XML Simplest way could be to load based on file extension "/_layouts/images/icXXX.gif (where icXXX, would be ...


1

The effected libraries had the option Library Settings > Versioning Settings > Draft item security set to 'Only users who can edit items'. Change the above option to 'Any user who can read items' then reset the index and do a full crawl, the documents where indexed and are now being served up by search.



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