Tag Info

New answers tagged

1

The visual web part should be included to the Site-scoped feature, as a result properties.Feature.Parent is a SPSite object. You need to check feature scope and use the code below if the scope is site. SPSite site = properties.Feature.Parent as SPSite; if (site != null){ SPWeb web = site.RootWeb; SPList laptopList = web.Lists["Laptops"]; ... }


0

there is no easy way to reduce the number of clicks. What you need, you have to write a utility for end user to sign up for multiple lists. Below code snipt will create alerts for one list, now from here you have to write your logic and add multiple lists...may be write all lists url in the Notepad or etc... If you want the alert to be added to list, ...


0

Try this for creating list and view in sharepoint using powershell : http://nkelkar.wordpress.com/2011/06/21/powershell-create-lists-add-columns-set-new-default-view/


1

Use SPList.SaveAsTemplate for your source. Should be the same as the GUI.


0

Someone is going to have to do 5-6 clicks. :) Set up a workflow which initiates an email when an item is created/changed for the list. Have it point to a disto list/mailbox (easy) or manually add the names (harder). This can be as simple as a one line workflow or more complicated. This article walks you through basic steps. ...


1

It sounds like you shouldn't use a calculated column at all: It would probably be easiest to use the workflow to set the field value when that intermediate step is complete as is sort-of suggested in your link; to get it working in your situation you need to make the column you're using as a calculated one now a date or text type, then make a workflow or ...


0

Use the designer and put the code in the Content PlaceHolderAdditionalPageHead @Colbs on StackExchange: Question on StackExchange


0

You are able to access the files in a document library via C# SharePoint Library and read from an excel file. Read from excel file: http://social.msdn.microsoft.com/Forums/vstudio/en-US/b6e8a28c-6760-4e86-a1aa-e2ce9ec36380/reading-excel-from-c?forum=vsto Use C# to access sharepoint list: ...


0

You can create a People directory using the People Search without writing any code. How to: Create a Simple SharePoint 2010 People Directory another way is use the infopath. Create the contacts list, and open in InfoPath Create a data connection to the User Profile web service Customize the form adding some text, a people picker and a button Create ...


0

I am in the same situation and would have thought this feature would be present in a product such as this. Your link was quite interesting although like you I didn't really want to have to delve into too much code (especially JavaScript) to get such a simple thing working like this. I basically came up with a crude method myself of creating a custom column ...


1

You'll get an array back if you use loadQuery rather than load. In the example below allDocs is an array. var targetList = ctx.get_web().get_lists().getByTitle('Shared Documents'); var query = SP.CamlQuery.createAllItemsQuery(); var queryResults = targetList.getItems(query); var allDocs = ctx.loadQuery(queryResults);


0

welcome to the SharePoint Development. You wanna have a custom detail form for the external content, right? For this you can try BCS profile pages. This pages provides the functionality to build and design new pages and fill them dynamically with the external content. This page will shown at the search result as well and looks much better then the default ...


0

You can get the result as an ArrayList using SP.ClientObjectCollection.data Then you can access properties like this: var listEnumerator = allDocs.get_data(); listEnumerator[0].get_item("FileLeafRef") Edit: If you want an array with only FileLeafRef, you could do something like this: var myArray2 = new Array(); allDocs.get_data().map(function(item) ...


0

It is failing because you are deploying the lookup field before the lookup list. The relevant quote from the blog you referenced states: The trick to doing this right is understanding that the order in which the package deploys the artifacts is important. Look inside your feature designer, and I bet the element that provisions the lookup field occurs ...


1

your question is confusing? I think what you mean is: You have a list, the list has a column. Within this column you want to auto generate a unique number when an item is added with the format of: item 1=1000 item 2=1001 item 3=1002 ... solution: you need to do this through code, in visual studios create an event receiver for the list, there are two ...


0

Lists can have a document attachment AND the benefit of many associated preset and/or unique metadata fields. Libraries have a document but only a limited number of only preset metadata fields.


1

You should be able to do this with an SPD workflow. Create a new Product ID list, Create a reusable workflow that adds, edits, and deletes the products ID's from this list as they are added, edited, or deleted in the 20 other vendor lists. Then associate the reusable workflow to each of the vendor libraries.


1

I'm assuming you're talking about using the FilterField and FilterValue query string parameters: You can filter on fields that are not displayed in the dataview. I would actually probably make a seperate querystring parameter for your data view in SP Designer, then you can use an OR condition in the list filter and not make any new fields (you also avoid ...


1

You can make use of Calculated columns, create your column 'TitleDescription' with 'Calculated Column' as type and use the below formula to concat the Title and Description, =[Title]&[Description] The above code will concat the two column value. EDIT: Calculated columns in SharePoint 2010 are similar to formulas in Excel spread sheet. Their result ...


1

There are two ways of showing the attachments of List Item in the same grid where List Items will be shown. Check the followings: This TestList, each one contains multiple attachments. Way 1: Using JavaScript--> Go to the Site > Site Assets and upload jquery-1.11.1.min.js, knockout-3.0.0.js and Script.js. Script.js will contain following code: var my ...


0

I found this solution using MS Access- SharePoint this might be useful for someone - http://sharepointlogics.com/2014/07/how-to-import-excel-spreadsheet-to.html


1

I would say the style library is a good place to store css files. The reference itself depends on how to you want to have the scope of the changes. If you are okay with having a global site reference, use the masterpage or the alternatecss property in site settings, masterpage section. if you want to narrow down the scope, you can add it at the page ...


1

In SP2013 you can define a custom ccs file to be linked to your masterpage on your root site via Site Settings => Look and Feel => Masterpage => Alternate CCS URL => Specify a CSS file to be used by this site and all sites that inherit from it. Click 'Browse' to insert the path to your css file (best location to store it would be the list 'Style Library').


0

try this formula, hope it will work. =IF(AND(YEAR(opendate+90)<2014,MONTH(opendate+90)<5,DAY(opendate+90)<31),"8/31/2014",opendate+90)


0

The design view was removed from SPD2013, so that is why you do not see the options to edit the view. The suggested method in SP2013 is to use JSLink to change the column. A couple of references: Martin Hatch: http://www.martinhatch.com/2013/08/jslink-and-display-templates-part-1.html Chris O'Brien: ...


2

Go to your Elments.xml of the list instance/definition and change the Title. ex. <?xml version="1.0" encoding="utf-8"?> <Elements xmlns="http://schemas.microsoft.com/sharepoint/"> <ListInstance Title="Terms Of Use for Web AP" OnQuickLaunch="TRUE" TemplateType="109" ...


1

If you want to retain the same display name, but just change how the name is displayed in Site Contents, I suggest that you do a little jQuery hack. var termsOfUseLink = $('#applist a.ms-vl-apptitle[title="TermsOfUse"]'); $(termsOfUseLink).text("Terms Of Use for Web API"); Of course you need to make sure that jQuery is referenced, you also need to include ...


0

If you just want to change the name in left menu, just go to Site Settings > Quick Start and edit the name as you wish.


2

I found the answer to my problem. By default, grouped lists are set to be collapsed. If you change this to expanded by default, the list filters as expected. Another wonderful hidden feature of SharePoint maybe?


0

You should use =AND(Expr1,Expr2) =AND(DATE1>DATE3,DATE2>DATE3) PS: Depending on localization, the separator could be ; not ,


1

Just add a conditional check for column A to be blank. =IF(A<>"",CONCATENATE(A,", ",B, " feet"),"") If A isn't blank, it'll return the concatenation, otherwise it returns an empty string.


0

Your loop is strange.... I guess your code should look more like that: SP.SOD.executeFunc('sp.js', 'SP.ClientContext', startProgram); function startProgram() { var clientContext = new SP.ClientContext.get_current(); var oList = clientContext.get_site() .get_rootWeb() .get_lists() .getByTitle('NBS Calendar'); var camlQuery = new SP.CamlQuery(); ...


1

var d = new Date("Wed Jul 23 01:00:00 UTC+0100 2014"); getFormattedDateWithOrdinal = function (date) { var d = new Date(date); var curr_date = d.getDate(); var months = new Array("January", "February", "March","April", "May", "June", "July", "August", "September", "October", "November", "December"); var ord = ""; if (curr_date == 3 || ...


1

Take a look at this blog. It explains how to attach a workflow created in the app to a list in the host web. Attaching content types is quite a different proces than workflows, but it should give some ideas. Something along the lines of this (warning, my JSOM might be off, so check the syntax): var clientContext = new SP.ClientContext.get_current(); var ...


0

Have a look at this create-a-list-in-the-host-web by Steve Peschka


0

The most difficult part of your requirement is the "non-document" item. Can you explain that scenario? A document item must have a document. If you want to change that behavior you may try to add a non document content type to a library, but I would think that should fail. Next you could try to "fake it" with a folder or Link to Document content type. ...


1

You don't need to modify the SharePoint file. Just create a new Content type, attach each field to it, attach it to the library, set it as the default on the library, then they will show up after you upload your file.


0

Copy/Paste works, little more time intensive but you don't have that many posts. Also, you may want to look into Wikis for collaborative editing of "items"


0

Have a query string filter on a page. This will filter your views for items pertaining to a supplier. Add a link field to the supplier list (or use JSLinks to format the rendering of a field) that points to the page, along with the query string filter. I can add visuals if you would like.


0

You can enhance the end-user search experience by mapping crawled properties to managed properties. Crawled properties are metadata (such as author, title, or subject) that are extracted from documents during crawls. Managed properties can appear in refined searches and help users perform more successful queries. Refined searches can be ...


2

It seems that you would want to upload an excel document to a document library and while that happens, do stuff. One way to achieve this is creating an event receiver that captures the ItemUpdated event. For the "do stuff" part, you can use the openxml api, which will allow you do read data from the excel document and populate it in the list. here are a ...


0

This is not possible using out-of-the box list views. An alternative - insert a list view web part on a page, and then insert a "related lists" web part. The steps are documented here: http://www.wonderlaura.com/Lists/Posts/Post.aspx?List=daba3a3b-c338-41d8-bf52-cd897d000cf3&ID=74&Web=dbb90e85-b54c-49f4-8e97-6d8258116ca0 A programmatic approach: ...


1

This thread is quite old but there is a solution for it explained in this forum post: http://www.telerik.com/forums/table-formatting-lost-after-saving-a-list-item Here are the two steps: In order to workaround this issue you can create a custom content filter, which will strip .ExternalClassxxxxxxxxxxxxxxxxxxxxxxxxxxx class. Modify the respective ...


0

Maybe I am missing something, but these answers are way more complicated than they need to be. Just make a custom NewForm.aspx in SharePoint designer, edit it, and delete that field. If you get an error for deleting some mandatory field. Just do inline css style="display:none" to hide the field, though do make sure it is getting a default value. Then set ...


0

In the list settings you can select the content types as on. then select the item content type and hide the column


0

To achieve the output of all comment versions I found a solution on Marc D Anderson's Blog. In order to get this to work I had to switch from using a CQWP to a DVWP, but this wasn't a struggle. For those looking for a quick copy and paste the following was used within the xslt: <SharePoint:AppendOnlyHistory FieldName="Comments" runat="server" ...


-1

The current view you are in has only become corrupted. If you access the list settings via site content, delete and recreate the view, the tabs will reappear. I have tested this out in SP 2013.


0

Make sure the fields displayed in the selected view are working/provisioned correctly. I once had this problem due to a field that was not working correctly. Deleted the field from the list and it worked again.


0

Code to get the data from list using ecma script object model. <SharePoint:ScriptLink Name="SP.js" runat="server" OnDemand="true" Localizable="false" /> <SharePoint:FormDigest runat="server" /> <script src="../jquery-2.1.0.min.js" type="text/javascript"></script> <script type="text/javascript"> var rowscount = 1; ...



Top 50 recent answers are included