Hot answers tagged

9

Try 1;#LV1;#2;#LV2;#3;#LV3. Each item seperated by ;#


7

This can be done either by setting EnableContentType=true in the list definition or in the feature activation event we can set the attribute. Please refer the below links. They will definitely help you in solving your problem. Enable managing content types by default at list creation Creating SharePoint 2010 List Definitions in Visual Studio 2010 A ...


6

Well, I am not absolutely sure, but I think the answer is: there is no way to skip metadata property. You may of course create a kind of proxy by implementing a custom web service which itself consumes listdata.svc and truncates the __metadata property? But it doesn't sound good to me. You can of course skip all other unnecessary properties by defining the ...


6

This says to "toggle the SPList ContentTypesEnabled property from False to True". Just toggle the SPList ContentTypesEnabled property from False to True. That enables the use of multiple content types on the list.


5

My problem was resolved by changing Mult="true" to Mult="TRUE" but this was not what I asked.


5

Do you know how to build a basic web part? If not I suggest you learn this first. Here's a sample tutorial: http://msdn.microsoft.com/en-GB/library/ms415817(v=office.14).aspx Next you want to learn how to develop against web services. Helpfully, Yahoo have a tutorial on how to deal with responses to web services as XML within C# applications: http://...


5

Ok, after lots of trial and error i got it. Turns out that A, no matter the locale of the site collection, the Client object model must enter in the english syntax. B, " and & throw syntax errors unless written as & quot; and & amp; so the correct code is: <Field Type='Calculated' DisplayName='Periode' LCID='1043' ResultType='Text'><...


4

XML files are searched and indexed natively in SharePoint 2010 using the out-of-the-box engine (FAST is just a search add-on/alternative but uses the native engine under the covers so it's a supplement and will search XML files using the native engine). It's a little confusing because you say you're using FAST (generally a product related to SharePoint 2010)...


4

Add the following property to ArrayOfProperty <Property> <Name>IsPathRendered</Name> <Value xmlns:q7="http://www.w3.org/2001/XMLSchema" p4:type="q7:boolean" xmlns:p4="http://www.w3.org/2001/XMLSchema-instance">true</Value> </Property>


4

This is afaik the only way to do it SECURELY the ajax answer on that page is a bad example however of how to acheive this, the accepted answer is the correct way: Hiding buttons of the Ribbon Bar


4

CSOM and the REST API include the WebProxy for these operations. Query a remote service using the web proxy in SharePoint 2013 Code sample: $.ajax({ url: "../_api/SP.WebProxy.invoke", type: "POST", data: JSON.stringify( { "requestInfo": { "__metadata": { "type": "SP.WebRequestInfo" }, "Url": ...


4

I'll assume what you are trying to do is change a Choice field's type using PowerShell. In that case you can do something like this: $web = Get-SPWeb -Identity http://your.site.url.here $list = $web.Lists["YourList"] $field = $list.Fields["YourField"] $field.Type = [Microsoft.SharePoint.SPFieldType]::MultiChoice $field.Update() The SharePoint SPFieldType ...


4

It's actually very simple! :) You only have to duplicate the <Button tag and the <CommandUIHandler tag. Also be sure to duplicate the <ControlRef in the <Layout, or else the new button will not show. Something like: <?xml version="1.0" encoding="utf-8"?> <Elements xmlns="http://schemas.microsoft.com/sharepoint/"> <...


3

Here is an example using CSOM in JavaScript. var context = new SP.ClientContext.get_current(); var listTitle = "Name of List"; var viewTitle = "Name of View"; //You can compose a CAML or use a view. list = context.get_web().get_lists().getByTitle(listTitle); view = list.get_views().getByTitle(viewTitle); context.load(...


3

The problem is that you are using a filepath that is URL encoded (the %20 should be a space): <Batch OnError="Continue"> <Method ID="1" Cmd="Update"> <Field Name="ID" /> <Field Name="FileRef">http://sharepoint:32667/personal/user/Shared Documents/EmailMessage.msg</Field> <Field Name="ContentType">Document<...


3

As far as I know you will have to parse the XML. Its very easy to do string xml = @"<pc:Person xmlns:pc=""http://schemas.microsoft.com/office/infopath/2007/PartnerControls""> <pc:DisplayName>John Dodo</pc:DisplayName> <pc:AccountId>DOMAIN\john.dodo</pc:AccountId> ...


3

Responding to your sharepoint-designer tag, I'm afraid, there is no way to style mobile list views through SharePoint Designer. You should use RenderingTemplates for this purpose, as it is described on MSDN: http://msdn.microsoft.com/en-us/library/bb861936.aspx This way, you'll have to deploy a custom RenderingTemplate to the 14/template/layouts/...


3

I've found a brief snippet that'll give you the first couple of lines, which is a starting point at least: How to add a list view web part to onet.xml or your elements manifest <WebPart xmlns="http://schemas.microsoft.com/WebPart/v2"> <Assembly>Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c</...


3

I think your Location property is wrong. Depending on your settings and page layout correct location for Page tab is Ribbon.WikiPageTab or Ribbon.WebPartPage. There is no tab defined as Ribbon.Page in \14\TEMPLATE\GLOBAL\XML\CMDUI.XML You can easily check id of any tab if you use IE with Developing Tools or FireFox with FireBug to explore ribbon markup. ...


3

Your question implies that you already know the specific item. That makes it easier to isolate the data you want. Each of the lines shown will return a text response as shown below assuming that these are not "special" fields like choice, lookup, etc. This URL will return christophe http:/.../_vti_bin/listdata.svc/Contacts(2988)/Contact/$value This URL ...


3

I know that the fields order is from schema.xml To chenge the order the key is : SPFieldLinkCollection.Reorder MSDN : http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spfieldlinkcollection.reorder.aspx


3

The rule is very simple. Each SPWebApplication has a property which specify how many days the icon should be shown. To get using PowerShell : $wa = Get-SPWebApplication http://sharepoint $wa.DaysToShowNewIndicator


3

Sharepoint includes a hierarchical configuration manager that can safely store and retrieve configuration settings. You can use sharepoint property bags to store/retrieve config settings. SharePoint 2010 does not provide a user interface to read and write these configuration settings at run time. To do this, you can use the property bag editor on CodePlex: ...


3

If you are only using id's, it worked for me only with: 1;#;#2;#;#3


3

Have a look at http://blog.jsonpify.com/ or, as suggested on the blog above, have a look at http://developer.yahoo.com/yql/ YQL can be called from client script using JSONP, allowing you to pass a SQL-ish query against an "Open Data Table". An Open Data Table is an abstraction layer similar to a BCS model in SharePoint. An Open Data Table abstracts web ...


3

This article describes how to do it. I had a need to view the raw XML being generated from a Content Query Web Part today, so I could see exactly what data was being returned in each column. This is how to do it. The PublishingResources feature of MOSS2007 contains a file entitled ContentQueryMain.xsl, which is the primary stylesheet for the ...


3

Try adding Both Delegate controls and it should resolve your problem.


3

The error: The remote server returned an error: (403) Forbidden. occurs since authentication is required for this operation in SharePoint Online. You could utilize SharePointOnlineCredentials class from CSOM API for that purpose. The following example demonstrates how to download RSS feed from SharePoint Online and save it into file. Complete example ...


3

Isbah you can use any website which offer feeds or service to give prayer times. See islamicfinder.org/prayer_search.php for example. Also github.com/meltuhamy/masjid-times/wiki/Prayer-Times-Web-Service


3

If you need to update via direct xml then use SetViewXml method of view. So your code would like this SPList list = web.Lists["Test"]; SPViewCollection collViews = list.Views; string strViewName = "NewVIEW"; System.Collections.Specialized.StringCollection collViewFields = new System.Collections.Specialized.StringCollection(); string strQuery = ""; ...


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