Tag Info

New answers tagged

1

I found some documentation referencing the above behavior and explains it. When attaching content-types to lists/libraries, the content-types event-handlers are automatically added to the list's event-handler collection. This it to support some basic list/library functionality which has been around since WSS 3.0 already. Even though all the event-handlers ...


0

I did the same using an item event receiver. I'll show what i did in c# code, but you'll have to do the same logic in your script. First of all you can try a $folder.SystemUpdate() instead of the .Update(). This solved some issues for me. Next you can write a foreach that will delete all the current permissions, and after this is executed if adds the ...


1

Yes you can set Item level permissions on Document Library.. Click the context menu/List Item Menu and click Permissions.. Here you can Stop Inheriting Permissions from Library and set unique permissions for the Document.. And once you stop the inheritance of the Document, it will say Item has unique permissions, see below:


0

Follow this steps got to Library Permission by default, library inherits permissions from parent. Just click on Stop Inheriting permissions. after that, Delete the users or groups which you don't want. Add the users or groups that you want library to be accessible. and save. library will than have unique permissions


1

This it problem as Word (or any other program) does not know how is user logged in within IE. The only thing they can do is to enter credentials and check Remember credentials. This stores entered credentials to local user store and allows Word to use them next time. But as you mentioned "Remember my credential" functionality does not work all the time. To ...


1

The difference is same as of a Folder in Windows.. If you are placing all the images in a folder, the view gets different and it uses Thumbnails view.. The same is for Picture Libary/Images App in SharePoint.. It will give you thumbnail view of the images.. Picture Library is actually an enhancement to the Document Library.. Also one of the important usage ...


2

You can't do this using out of the box workflow actions. I don't know any 3rd party workflow actions set which works with SharePoint 2013 workflows and allows to copy documents. There are only custom actions for SharePoint 2010 workflows. For now you have three options: To break your head with Call HTTP web service workflow action. You can try to call ...


0

Check to ensure that you can access one of those inaccessible "Personal Documents" libraries and its items via powershell: $mysitelist = (get-spweb http://mysite/personal/user_name).Lists["Personal Documents"] $mysitelist.items If you can access the list items, use powershell to inherit library permissions from the site with: ...


0

If you need to remove permissions programmatically you should first break inheritance: list.BreakRoleInheritance(true); After that you can for example remove all role assignments for list or library and it does not effect for higher levels: SPRoleAssignmentCollection roleAssignmentCollection = list.RoleAssignments; for (int i = ...


0

Well, adding the code below as a new function to the SPServices.js file, will work. The new function name is SPGetLastItemIdAnyUser : // Function to return the ID of the last item created on a list. $.fn.SPServices.SPGetLastItemIdAnyUser = function(options) { var opt = $.extend({}, { webURL: "", // URL of the target Web. If not ...


0

In REST, adding 'Id' to the column works as long as your specifying the Id. LookupColumn: "docItem" "docItemId" : 1


2

You need to go to Document Library Ribbon -> Under Library -> Library Settings -> Permissions for this document library OR simply Document Library Ribbon -> Under Library -> Library Permissions By default the document library will be inheriting permissions from Site, you need to click "Stop Inheriting permissions" ribbon button to stop that.. Than you ...


0

'New Document' on the top is part of the Web Part's tool bar. It points to Upload.aspx and you can't change it by modifying the settings but you can change the toolbar type of the web part from Full Toolbar to Show Toolbar or No Toolbar. To modify the web part's toolbar go to Edit Page -> Edit Web Part -> Toolbar Type. With Show Toolbar you'll have 'New' on ...


0

If you are still experiencing trouble with this question I would like to clarify why you may be experiencing following the previous answer: It sounds like you may have tried to sort based on "file name" content type as opposed to the content type which actually defines whether the entry is a file or a folder. In many cases this content type could be ...


1

It sounds like the fields were promoted to columns. In the InfoPath form, go to Form Options and click on the Property Promotion category. See if the 2 fields you mentioned are listed. If so, simply click Add to add your desired column(s) and click OK, then publish the form.


0

I found the obvious setting which controls the behavior I wanted. Library Settings -> Advanced Settings -> Site Assets Library = Yes


1

You can use this script written by Nik Craik. The script below will extract all documents and their versions, as well as all metadata and list data to CSV files. The DownloadSite function will download all the documents and their versions into folders named after their respective document libraries. Versions will be named ...


0

You can also change the SPViewScope in C#: SPView view = list.Views["YourViewName"]; view.Scope = SPViewScope.RecursiveAll; //more ViewScopes are available view.Update()


0

Unfortunately, from a brief search it looks like the SkyDrive Pro sync service can only sync entire libraries, not parts of them. http://social.technet.microsoft.com/Forums/sharepoint/en-US/2e4aa520-8c64-4cdc-b80b-4cf91413c81e/how-to-sync-only-subfolders-in-a-library-in-sharepoint-2013?forum=sharepointgeneral ...


0

I'm not sure this answers your question as I'm not sure if you're trying to download the files or copy them to a new library, but I'm assuming you're just after a bundle of files that can be mailed off. If that IS what you're after, I think I can help, if not, hopefully I'm at least getting you on the right track. If you're running 2010, there are several ...


2

It is not a bug.Site Templates does not retain the Security settings.Site templates do not include the following items: Customized permissions, running workflow instances, list item version history, workflow tasks associated with running workflows, people or group field values, taxonomy field values, publishing pages and publishing sites, My Sites, and ...


1

Permissions are not included in site templates in SharePoint Server or SharePoint Online. More to read in Reference 1 and Reference 2


-1

See here. Read all the page. Basically you should not use the default document library but create and use a new one


1

To set the default behavior for opening documents for entire site, activate a site collection feature "Open Documents in Client Applications by Default". This should force the documents to be opened in client application. To set the behavior at library level, go to library settings -> Advanced Settings -> and set Opening Document in the Browser to 'Open in ...


2

I came across this today and found another workaround. When the web part is added to the page it creates a hidden view on the list it is bound to. You can get the hidden view and make the changes to it directly. This works for announcements, calendars and doc libraries from what I have tested so far. Example: private static void AddWebPart(Web web, ...


0

For SharePoint 2010 there won't be an issue in rendering regular pages in an iFrame, but for SharePoint 2013 (and also Excel Services pages) you'll probably run into X-FRAME-OPTIONS: SAMEORIGIN issues. For SharePoint 2013 it is the preferred way to add <WebPartPages:AllowFraming runat="server" /> to the page you're framing. ...


0

From the CRM perspective, no idea! But I guess, basically, you can create a page in SharePoint where you provision your webpart. Then you can create an iframe in CRM with the url to the pageUrl + "isDlg=1" which will hide the header and left nav etc. You must, though, make sure that all users that will be able to see this in CRM also has access to the ...


0

I solved it by adding a Membership element in the CAML query for the view with the filters.


1

Serve Side approach: Create a custom file based on "_layouts/[15]/checkin.aspx" file and add the default value for the comments field. Additionally, to tie this to a particular list, create a custom action(one for Ribbon and one for ECB) that would open your custom "custom-checkin.aspx" file. JavaScript approach: function addCommentDefaultValue() { if ...


1

Paging using CAML cannot go to a Nth page directly, like you can do in SQL. For using paging, you need to use ListItemCollectionPosition property in the SPQuery. Tips Limit the Columns (ViewFields) of your query Set the RowLimit on the SPQuery Don't forget to explicit the OrderBy in the Query Choose an indexed column (if possible) to OrderBy Every time ...


2

For this, you'll want to use the ListItemCollectionPosition property of SPQuery. SPListItemCollectionPosition is the class which helps to achieve paging and sorting the results fetched by SPQuery. See here: http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.splistitemcollectionposition.aspx and here for a more comprehensive example


0

I am facing the same issue wherein we want to disable the drag drop functionality to implement rights management. Please let me know which of the above mentioned ways work?


0

So you have two ways to do that: First : The easiest: Navigate to the source document library and open the "explorer view" then copy the documents and move those to the new path Second: Type a script or program $src = $web.Lists [ "source" ] $dest = $web.Lists [ "dest" ] $destFiles = $dest.Folders [ "mydoc" ] foreach ( $item in ...


0

Open with Explorer became enabled when I switched from IE 8 64 bit to IE 8 32 bit.


3

This took forever to figure out, but of course it is simple once you got it. Instead of pasting a bunch of code, here is the context and then the raw HTTP POST request that I ended up with. The documentation is actually right here: http://msdn.microsoft.com/en-us/library/dd962796(v=office.12).aspx Syntax for the slug header is as following: ...


1

AHA! There were actually 2 mysteries here which likely lead to my trouble figuring this out. Nothing was actually corrupted, just an inexperienced user and an inexperienced admin coupled with some slightly strange behavior in SP. The first mystery, that of the phantom files, was caused by SharePoint marking most of the uploaded files as checked out to a ...


0

You can apply a workflow on the library and change permission there according the group specified; this would work if the users can create/modify documents in the library. if the ability to add documents belongs a certain user, audience would work good.


2

If you are only concerned about what documents users can see in the web part you are making then this is relatively straightforward using the Audience Targeting option in the web part. To do this you would make a web part for each of the different user groups, and for each one input the respective audience in the web part settings. The audience targeting ...


3

here is a better solution. Enjoy and let me know if you need more help :) ExecuteOrDelayUntilScriptLoaded(function() { g_uploadType = DragDropMode.NOTSUPPORTED; SPDragDropManager.DragDropMode = DragDropMode.NOTSUPPORTED; }, "DragDrop.js");


2

The article referenced by Diego above includes at the bottom a PowerShell script you can download. Change the variables at the top of the script from the dummy URLs and library names included in the script to your actual web URLs and libraries and hit go. The script copies the binary contents of the files as well as the metadata from one site to another. ...



Top 50 recent answers are included