Tag Info

New answers tagged

1

Which version of SharePoint you are Using? I think your best bet is use the Codeplex SharePoint Manager tool. For SharePoint 2013 http://spm.codeplex.com/ For SharePoint 2010 donwload from here http://spm.codeplex.com/releases/view/97332 They also have for 2007.


2

SharePoint 2010 Use ClientContext structure that is generated on the client-side and contains List View details: //find active View Id function getCurrentViewId(listId) { var viewId; for(var ctxKey in g_ctxDict){ var curCtx = g_ctxDict[ctxKey]; if(curCtx.listName == listId){ viewId = curCtx.view; break; } } return ...


-1

var viewCollection = null; //To fetch the collection of views: var views = list.get_views(); //get the specific view by name: var list = listCollection.getByTitle("MyList"); var myView = list.get_views().getByTitle("YOUR VIEW TITLE"); this.viewCollection = list.get_views(); //get current view: var viewEnumerator = ...


0

This question is off-topic in SharePoint context. To answer, these properties cause Side Effects and hence its not evaluated by design. A side effect occurs when evaluating an expression changes the value of data in your application. Side effects are something to watch for if you are evaluating expressions in the debugger. If you evaluate an expression in ...


0

Everyone has made some good suggestions here. I will add that folders can excel when leveraged for user adoption. Usually users will already understand how to work with folders. While I wouldn't deploy a deep hierarchy of folders, I am fond of them because it allows me to setup default metadata values when documents are added. You won't get very far ...


1

You should keep the data in a single list and create separate views for different teams. List views can be created by opening the List Settings and create view.


1

Depends on the customer's requirements. If the Customer has Records Management requirements, folders might be (and probably are) required. There is nothing wrong with folders. Some companies will never use tags or even notice or care that they can. It also depends on the number of files and how the customer is used to finding their stuff when needed, now. ...


0

I would like to understand why you would do all this work to make a web part that is viewable by only a few users where all users can see the content, if the content has not been granted unique permissions. What is the requirement? Also, I have, for SharePoint 2010, lately been seeing lots of permissions issues where customers are setting unique permissions ...


0

You can change the type of column that your event descritpion is. If you change it to a Rich-Text enabled column, then you can style text, add pcitures and links and what-all else. To do that: Open your Event Announcement list. At the top ribbon, click the "List" tab. Click "List Settings" On the next page, you'll see your columns listed. Click on the ...


2

As a Best practices you need to use the Index Column, this will help to improve the performance. You can have up to 20 Index column. Then you create Filter view Based on the Index column to quickly filter through large list. In general, an index on a column enables you to quickly find the rows you want based on the values in that column, even when ...


0

As other says. You need to enable the version'ing on your List to track the updates on the List item.List Settings > Version settings -> Item Version History Once You enabled the version then you can check it either by the item properties or Add the Version Column in your View, That column will display latest version number. Also check these may ...


7

I would suggest you create different content type or use the tagging feature to organize the items. Check this for the list of Pros and Cons http://social.technet.microsoft.com/wiki/contents/articles/16166.sharepoint-2013-using-folders.aspx Folder vs Metadata SPS 2013 search makes it easy to find worthwhile files and list items with or without any added ...


1

Maybe use a blog instead and they can publish the content to the blog directly from Word and retain the look they have with no customizations necessary.


0

I spent a few hours in reflector too and I found that you can call Checkout() method by reflection on your newly added SPListItem without calling Update() method. The result is that your item is saved but not completed.


0

This looks loke something I would do in a few steps. 1 hide the list as @Dolgsthrasir suggests 2 manage permisions for the list / or make specific views for the list remove the read but now write from users. List permissions with PowerShell 3 Provide a quick link for users to contribute to the list / handle it via your application If the PowerShell ...


0

Had a similar issue. Turns out it was a synchronisation issue with Outlook. If you have a list or Calendar linked to Outlook, then all items will be modified during synchronisation. Remove the list/calendar in question from Outlook.


3

If you only want to hide the list from "All Site Content", the SPList class has a "Hidden" attribute. If you set this attribute to true, nobody will see the list via "All Site Content", but you can still access the list with the direct link. You could set the "Hidden" attribute with Powershell or a console application, for example (or do it at feature ...


1

In a feature event receiver upon FeatureActivating, get a handle on your list and set it to hidden, http://msdn.microsoft.com/en-us/library/office/microsoft.sharepoint.splist.hidden(v=office.14).aspx This will hide it from the All Site Content and still give users the ability to add items to it. If anyone did know the underlying list name, they could ...


2

You can use spsecurity.runwithelevatedprivileges to edit the list from the application. Go through the below link on how to use the above method. No need to give user any special permissions. Give edit permission to the application pool account. That should solve it. If you want to save the user name as well in the list you can do by creating a new column ...


3

How to retrieve List Url in SharePoint Online using PowerShell CSOM Function Get-SPOCredentials([string]$UserName,[string]$Password) { $SecurePassword = $Password | ConvertTo-SecureString -AsPlainText -Force return New-Object Microsoft.SharePoint.Client.SharePointOnlineCredentials($UserName, $SecurePassword) } $context = New-Object ...


0

try this $MyWeb = WebUrl $MyList = MyWeb.Lists["ListName"] $MyItems = $MyList.Items $MyItems | Select Fields.. | Export-Csv FilePath $MyWeb.Dispose() Source: http://iwillsharemypoint.blogspot.com/2011/02/export-sharepoint-2010-list-to-excel.html Also Check this one ...


0

I figured it out. Had to use JavaScript for this. I was able to grab the current item's content type by looking at the ID parameter, grabbing the item based off that and getting its content type. function queryString(e){e=e.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var t=new RegExp("[\\?&]"+e+"=([^&#]*)"),n=t.exec(location.search);return ...


2

I'm actually fairly sure this isn't possible -- and the reason might seem kind of silly, but is a limitation of the architecture having to deal with content types: Forms (edit/view) are associated with a particular content type; so when you go to a list and edit an item, the first question SharePoint asks before it renders any form is 'what content type is ...


0

To get this information I would recommend you to implement a SPItemEventReceiver.Item.AttachmentAdding Event Receiver. When a new attachment will be added you can cancel this event when there is already a attachment on the list item. For validation of the file size you might need first upload the attachment and delete it, when it is to large. The items will ...


0

Can't you just edit the web part and change the Selected View option from Current View to Summary View?


0

There's no real way to do so using the SharePoint 2010 REST API, because ListData.svc only retrieves list item data; no data about the actual lists themselves. You can get what you're looking for by using the SharePoint Javascript Object Model (JSOM) though: var myCtx = SP.ClientContext.get_current(); var myLists = myCtx.get_web().get_lists(); ...


0

Options for this would be to: Use an event receiver that is attached to each 'Mobile Phone Tracker' list. On added/updated/deleted, update the Mobile Phone Directory list. Just use Search. Create a content type to use on all Mobile Phone Tracker lists. Index all Mobile Phone Tracker Lists. Configure the Mobile Phone Directory as a search for items of the ...


0

My personal preference would be to substitute both workflows with a single, synchronous event handler in List A, which will take care of the original item and the copied item in List B.


0

You can start by adding an Issues Tracking list. Open sharepoint site Click Site Actions, More Options Select Issues Tracking and Click Create button Once the list is created, you can go to list settings and change the Comments column -> Append changes = Yes This will store a new version of the comment each time you save the item. Ideal Approach Use ...


1

One way of elevating code is, as you already mentioned, using SPSecurity.RunWithElevatedPrivileges which will run SPSecurity.CodeToRunElevated with Full Control rights. From MSDN documentation of the method for SP 2013 (http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spsecurity.runwithelevatedprivileges.aspx) you can see that this code runs ...


1

You can use a list or a pages library on a publishing site. The publishing feature is only available with the Enterprise license. You can build a list view web part, a data view web part (DVWP) or a content by query web part (CQWP). DVWP can easily be styled in SharePoint Designer. CQWP styling requires changes to some core XSLT files, like itemstyle.xslt ...


0

Yes in those cases you should elevate the code, do the operation. There is no other way around this.


0

User a workflow and two lists. Your second list will contain nothing but your ID attribute. Your workflow would run on your primary list and access the value in the numbering list and assign it to your title field. Then before the workflow completes update the sequence in the numbering list so the next item get's the incremental number.


0

I don't mean to belittle everybody else's posts, but couldn't you just save these lists as templates w/ content and reimport them?


0

As far as arranging the data in lists there are two fairly straight forward methods: Use a single list and create people columns. Your contacts are directly associated with the server item. Use a lookup column type to associate the server list with contacts list. You need to provide criteria for matching to make it work. You can use multiple look ups if ...


0

Unfortunately calculated columns are calculated at the time they are filled in. Not each time the column is viewed. If you are, however, trying to do that calculation at the time the item is created you can use the following: =TEXT([Modified],"mm-dd-yyyy hh:mm:ss") A somewhat older but reliable article regarding time inside the calculated columns can be ...


0

The quick and dirty method is PowerShell and a scheduled task. Assuming your field is a date/time field. You can do any math you want in there as well. Just set it to run daily. $web = Get-SPWeb <Web URL> $list = $web.Lists["<List Name>"] foreach ($item in $list.Items) { $item["Current Date"] = Get-Date -format s; $item.Update(); }


0

other options: add Javascript to the view which updates the listitem using JSOM and But maybe you do not even need to update the Item, and all you want is a "today" calculation in the View, which can also be achieved with either CSR/JSlink code (which is not available in 2010) but can be done using Javascript in a Calculated Column (in both 2010 and ...


1

Two options Create a timer job which runs daily and updates the list items Create a workflow which fires daily and updates the list items Option 1 is straight forward and easy to implement. Option 2 don't require any deployment and you can use SharePoint Designer to achieve this, but building it is tricky.


1

Yes, you can achieve this using SharePoint Designer 2013( its free :-) ). For this, Open the site which contains the list in SharePoint Designer 2013. Select the List from List and Libraries section. Select your list. Under the forms section, click on New. On the popup, provide your form name and select New\Edit\Display. Check the set as default form.... ...


0

You can do something like this, ListItem listItem = myGroupList.Items.FindByValue("def_group"); if (listItem != null) { listItem.Selected = true; }; You can modify it to pass a variable in first line, in place of "def_group".


0

Set permission in site scope(for that user can access library): site actions -> site permissions -> Grant Permission -> choice user and select only the permission "Contribute - Can view, add, update, and delete list items and documents." UPDATE: Set permission in list(InfoPath): Library Permissions -> add user with full control. this permission ...


1

I assume that your problem is that the items you create in the lists are referring each other. For example, you create ItemA in ListA and ItemB in ListB. ItemA references ItemB and ItemB references ItemA. I assume further, that you would like to create the items from code and the lookup fields are mandatory. In this case you can simply create ItemB first ...


0

You can create a new list and then add the users who should appear in the dropdown. Then create a lookup column and select the users list.


1

You may use Event-receivers for this. To be more precise you can write Item Added event receiver on List A. This will copy the required fields from the current row in list A and create a new row in List B with the copied columns. You can find sample code here. You may need to modify it a bit as per your requirement.


2

Use Datasheet-View and make Copy+Paste or this Powershell script: Add-PSSnapin Microsoft.Sharepoint.Powershell [System.reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint") $site = new-object Microsoft.SharePoint.SPSite("SiteURL”) $web = Get-SPWeb -Identity siteURL $lista =$web.Lists["ListName"] $items = $lista.items foreach ($item in ...


1

The syntax you use when filtering fields to return inside of the load method depends on wether you're dealing with a collection or an individual object. You're encountering an error because you've specified the syntax for dealing with a collection: clientContext.load(collOfItems, 'Include(Field1,Field2)'); What you need is the alternate syntax for ...


1

Yes. You can get the SPWeb using OpenWeb() method and then pass the SubSiteName using(SPWeb web = sites.OpenWeb("subsiteurl"))


1

after more digging, what I found is that, I had 2 different column in that list which has same GUID. there is a script on this link which helped me to found those fields. Then I removed them from my list. Luckily, those fields were not used, so all worked smoothly. I hope it helps others


1

You could use SP.List.baseTemplate property to determine list definition type on which the list is based. ListTemplateType enumeration specifies list server templates. The following example demonstrates how to retrieve lists and filter by SP.List.baseTemplate: function getListsByType(typeId,success,error) { var context = SP.ClientContext.get_current(); ...



Top 50 recent answers are included