Tag Info

Hot answers tagged

4

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. http://snahta.blogspot.com/2009/02/enable-managing-content-types-by.html http://msdn.microsoft.com/en-us/library/gg276355.aspx ...


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 ...


4

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 couse skip all other unnecessary properties by defining the ...


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

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: ...


3

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>


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 ...


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, ...


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

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 ...


2

Can you debug the feature receiver and look at the parameters being passed to AddWebPart()? Make sure the zoneId value is correct, e.g. "RightColumn" and that the zoneIndex looks right. Are you sure that PartOrder is the value passed in as zoneIndex? It is suspicious that the order is 1, 10, 2, since that is sorted alphabetically; maybe the code that reads ...


2

The answer lies in a third party app/webpart or creating your own xslt file to render the XML the way you want. There is an XML web part that will let you point to an xml file, or enter xml manually, point to an xsl file, or enter it manually, and render the results. You can also create a custom Data View Web Part to accomplish this.


2

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. ...


2

You can add this file to the mapping folder Layouts for example, even add this file to embeded resources of receiver's assembly, if you don't need to share this xml with other modules. When you will add file to the mapping folder Layout, to get it, use path a kind of http://hostname/_layouts/your_file_name.xml this path will be accessible on any web, becouse ...


2

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> ...


2

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 http://www.directsharepoint.com/2011/11/change-column-order-in-new-and-edit.html


2

Try to use the CDATA tag: http://www.w3schools.com/xml/xml_cdata.asp. If that doesn't work, do the following: add the webpart manually run code to get the webpartmanager and all webparts on the page for the webpart, check all properties, and see what the zonetabxml looks like what you need, is to insert unparsed character data into your webpart. for ...


2

Create a reference to the Workflow Association and start it yourself. void startWorkflow(SPListItem item, string workflowName) { SPWorkflowAssociation wfA = item.ParentList.WorkflowAssociations.GetAssociationByName(workflowName, System.Globalization.CultureInfo.CurrentCulture); item.Web.Site.WorkflowManager.StartWorkflow(listItem, wfA, ...


2

I am basically having a similar issue. When I programmatically add the file, the workflow starts on create. It will then fail. Sometimes, it appears to not start at all. What I have gathered from the log files is that the workflow is being started before the add operation is complete. SharePoint throws an error in the workflow because listitem has ...


2

I think to save the file you would need something like Downloadify Getting the XML depends if you want it custom formatted etc. You could just use Javascript to call the lists.asmx yourself or Do it as office does it and go FrontPage RPC If you want custom, then you could build it in the DOM for ease and then export to a string variable, then ...


2

You will probably find that changing web.config files to store application settings for SharePoint Features is not your best solution. For an alternate solution that may work better for you, please refer to the Applications Setting Manager of the Microsoft Patterns and Practice SharePoint Guidance. SharePoint 2007 guidance includes a section on Managing ...


2

I guess the implementation of XDocument.Load(string) doesn't support an authenticated request to retrieve the XML file. However, there is another way because the approach that you are taking will mean that each time a document is opened two web requests are being made. One to build the Url using the SPFile object To access the SPFile object using the Url ...


2

You can reach the text inside dataBlobXml using the following template: <xsl:template match="field[@name='dataBlobXml']"> <xsl:value-of select="." /> </xsl:template> But this will come as text node into the template. So if you want to parse it further, you will have to either use string functions (like substring-before and ...


1

You can add XSL-file to your list views for format of dates or using SPD. Under Miscellaneous there is an option to add a XSL link. I'll give you an example, I'm not an expert on XSL, but the stylesheet under works. If its the best way to do it I don't know :) <xsl:stylesheet xmlns:x="http://www.w3.org/2001/XMLSchema" ...


1

SharePoint stores Time information in Universal Time Code format (UTC) which means there is no way to store the time without the date. There are ways to configure the display of a column in things like a DataView Web part to only display the time. Or you could create a calculated column that will store a string representation of the just the time. But ...


1

You can use a feature receiver for this, as described in the answer at: http://stackoverflow.com/questions/7091281/sharepoint-2010-adding-sample-data-to-user-field-type. This way you can generate valid ID+Name sets for your rows.


1

I cannot give you advise on your specific issue, however, I was in your situation that an existing form should be updated. Until now I was able to aviod what you are trying to do. I prefer to update the form and publish it to another location. After that the old library will be set to read-only and the new form will be used. Don't know if that is helpful ...


1

Here is an example using CSOM in JavaScript. var context = new SP.ClientContext.get_current(); var list = "Name of List"; var view = "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(view); ...


1

The XML is going to be web part specific. While there are some commonalities (ZoneID, PartOrder, AllowRemove, etc)... these are the properties of the web part. Since SP provides those common properties (you find these in the "edit web part" window), you might believe they are required by all. They are not. If not specified, the default values will be used. ...



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