An XML element is everything from (including) the element's start tag to (including) the element's end tag.

learn more… | top users | synonyms

1
vote
1answer
54 views

Custom action sequence number

I do not understand how does the sequence number work in custom action definition. How can I decide my custom position (which number should I use?) <CustomAction Sequence="600">
0
votes
0answers
5 views

SharePoint manipulating content on ListItem insertion

Long story short, I am parsing an XML document and adding items to the Body field of a discussion board. The XML has a <body> element that contains encoded HTML that I am adding to the list ...
0
votes
2answers
463 views

Is there a better way to edit Elements.xml while creating a custom ribbon?

I am creating my own custom ribbon button using this article as reference. My code in the file Elements.xml goes something like this: <CommandUIHandler Command="NewRibbonButtonCommand" ...
1
vote
1answer
18 views

Adding attachments in list instance

As we can add list instances in element.xml, is there a way to attach an image in Attachments field?
0
votes
0answers
22 views

List instance with default url

I am currently working with sharepoint hosted apps. Each app has a List, which i create from visual studio. The client needs some default rows for each list. In some cases a row may have an image. ...
0
votes
1answer
898 views

Unable to Edit Web Part Properties in Web Part Zone in 2013

I have a custom page layout that I have designed using Visual Studio. Within it I have several web part zones and I have a zone where I would like users to be able to edit the properties of the web ...
0
votes
1answer
34 views

Update Taxonomy Field value declaratively from a Module File Property

I'm uploading a stack of documents via a feature, and I have to set a Taxonomy Field. All the files are uploaded and all the other field values are correctly set. With the exception of the taxonomy ...
2
votes
2answers
110 views

Office 365- Master Page deployed via SharePoint Module( in Visual Studio) is not available in Master Page Gallary

I followed the steps given in the below article: http://www.codeproject.com/Tips/817340/Creating-Custom-Master-Page-for-Hosted-Apps Created a Custom Master Page. Applied it to my App. Its working ...
0
votes
0answers
44 views

The 'ListTemplateId' attribute is invalid - The value '100' is invalid according to its datatype

The XML for my EventReceiver is as follows: <?xml version="1.0" encoding="utf-8"?> <Elements xmlns="http://schemas.microsoft.com/sharepoint/"> <Receivers ListTemplateId="100"> ...
2
votes
2answers
2k views

Using JavaScript file in Elements.xml

I am trying to create a custom ribbon and in my project I have created a JavaScript file. From this and this question I was able to figure out that I can use <CustomAction> tag to import the ...
0
votes
0answers
43 views

XML For New Custom Action

I am trying to add a custom action button to a tab on the ribbon. I have the following XML in an elements.xml file in Visual Studio: <?xml version="1.0" encoding="utf-8"?> <Elements ...
0
votes
1answer
135 views

How To Deploy Files Stored in Layouts From Module

I am trying to deploy a .ASPX file using a module in Visual Studio. In all of the examples I have seen the files to be deployed are stored within the module folder in the Visual Studio project. My ...
0
votes
1answer
18 views

What other file should be corrected after removing an error in Element.xml?

I'm using Visual Studio 2013 on Windows Server 2012. I modified a Field in the Element.xml of my list columns because I made a typo when I typed it. Nevermind I corrected the typo. When I trying to ...
0
votes
1answer
20 views

How to Read XML attribute?

I have XMl file that has various file attachments when the attachment is empty the xsi:nil="true" will be set so i want to read this attribute
0
votes
1answer
34 views

Setting the value of a boolean XMLElement

I'm having a problem when assigning a value to a Boolean check/tick box within InfoPath xml code. I've created text boxes using inner text values but this gives the error of an incorrect data type. ...
0
votes
1answer
109 views

More than one showFields in lookup column

When we create lookup column OOTB, there is option "Add a column to show each of this additional fields", so that we can have more than one show fields in list for that lookup. But how to do same ...
0
votes
0answers
31 views

Fieldref - open in new window

I want to know how to make in SharePoint so that a link by FieldRef opens in new window. I have got some column and one with a link which opens, but only the same window. Sharepoint 2013 <View ...
0
votes
0answers
30 views

SharePoint 2010 - CQWP - Page Layout - Manual Save Of Properties Fix?

I've been struggling with this issue for a while now and was hoping that someone may have a possible solution or can help me come up with an alternative answer. Code <?xml version="1.0" ...
1
vote
1answer
66 views

How to define the ID for an EventReceiver in elements.xml?

I'm developing a custom SPWebEventReceiver for SP2013 the declarative way using the following elements.xml file: <?xml version="1.0" encoding="utf-8"?> <Elements ...
0
votes
1answer
392 views

How to bind tree view with XMLdatasource dynamically in c#

I have a scenario where I have a SPListItemCollection of SharePoint 2013 and I have to bind tree view with XMLDataSource. I have to add nodes to XML and iterate to add child nodes also but all these ...
4
votes
2answers
604 views

Set a date/lookup in ListInstance elements.xml

I have two lists. The first one has customers and the second one has Orders. Now i want to add some (test) data in the elements.xml of the listinstances. For customers this works without a problem ...
0
votes
1answer
162 views

Syntax to declare a hyperlink field value (both Url and Description)

In my list instance I'm attempting to pre-populate a data row with this hyper link: Project Link However I can't locate documentation and none of these guesses at syntax work: <ListInstance ...
1
vote
2answers
717 views

Publishing field type names for feature

I'm creating a SharePoint 2010 feature in VS 2010 to add some custom site columns to a site collection via an elements.xml file. I can't seem to find the Type attribute values for the publishing ...
0
votes
1answer
31 views

Module XML with multiple search result web part are conflicting

I have a module file which contains two search result web part. These two search result web part were both configured then exported as .webpart file via the SP UI. I used the exact content of the ...
2
votes
2answers
402 views

AddContentTypeField - cannot add field to Content Type

I have a list with content type in it. I'm trying to add a field to this content type so I can use it in the library. Here's I've added Elements.1.0.0.1.xml file to Content Type: <?xml ...
0
votes
1answer
152 views

Set a date in an InfoPath form to null

I'm trying to write an InfoPath form from code. I'm working with the xml of a form, and when I write a date it gives me no error but when I open the form in SharePoint and click on Save, it says that ...
0
votes
1answer
114 views

SP2013 Cannot create “_catalogs/masterpage”

I have created in my VS2013 solution a Masterpage module. The problem is that during feature activation I encounter a message 'Cannot create "_catalogs/masterpage', as if the feature was not being ...
1
vote
1answer
135 views

Ribbon button using autohosted app doesn't show up

I have created Empty Element in an autohosted App and tried this code for element.xml then uploaded & deployed it to Office 365 but nothing happened, Is there another step I should take? ...
0
votes
1answer
488 views

Create Folder in List Definition with Elements.xml

I am creating list definitions.Now what I want to create some folder when We create Elements.xml for list definition. Thanks in advance
2
votes
1answer
144 views

Programmatically setting HtmlDesignAssociated value

I'm deploying a composed look from the server (including the .spcolor, .spfont, master.html and master.preview files), but I cannot get the field Associated File to select. I've tried setting it in ...
3
votes
2answers
2k views

Ribbon fails: Ribbon <Tab> node must have a <Scaling> subnode

I am in big trouble. I have created two ribbons and both doesn't work. I allways get the following failure message: System.ArgumentException: Ribbon <Tab> node must have a <Scaling> ...
1
vote
0answers
177 views

Deploy custom newform for custom list using wsp for SharePoint Online

I have a custom list which inherits 2 custom content types. Each content type contains around 50 odd fields. I have to customize the layout of the form and integrate jquery for the newform and ...
1
vote
3answers
1k views

Define contenttype with list

I have defined my list definition as following: <List xmlns:ows="Microsoft SharePoint" Title="Requests List Definition" FolderCreation="FALSE" Direction="$Resources:Direction;" ...
0
votes
4answers
2k views

Deploy event receiver without associating with any list

I have an event receiver I developed with Visual Studio that I want to deploy. But in this case I want to deploy it without associating it with any list. (I add the event receiver to a specific list ...
2
votes
1answer
533 views

How to show XML weather in sharepoint?

I'm quite a newbie with sharepoint and especially in XML. I would like to show this weather info in my Sharepoint. I'm using XML web part & XSLT formatting. ...
1
vote
1answer
1k views

Custom form for Content Type is being ignored

There seems to be a bunch of ways to add custom forms to list and libraries but the easiest way seems to be to specify it in the Elements.xml file that defines a given ContentType. (If this ...
1
vote
1answer
2k views

Reference a javascript script in a ribbon custom action xml

Reference a .js file on a spribbon custom action elements.xml on my javascriptmethods.js file: function test(){ alert('test message.');} on my custom action elements.xml: <CustomAction ...
1
vote
0answers
216 views

Content Type Columns not showing for Image Library

I have created the following 2 Site Column Definitions and a Content Type that incorporates both of the site columns A List Definition of type Picture Library that utilizes the Content type. however ...
2
votes
1answer
2k views

How to add Two java script file in element .xml

I am using 2 button in custom tab and each button has a .js file to load . Could you please say me how to use 2 .js file in the same element .xml and here is my code for element xml <?xml ...
5
votes
1answer
4k views

adding link to suite bar in sharepoint 2013

I have followed the following liks to add custom links to sharepoint 2013 suite bar. http://blogs.msdn.com/b/findnavish/archive/2013/02/07/sharepoint-2013-customizing-suite-bar.aspx ...
3
votes
2answers
8k views

How can I provision a list with a calculated field?

I am trying to create some fields, a content type, a list definition and a list instance in Visual Studio. All of my fields are working, showing up in the list etc. except for calculated fields. What ...
1
vote
0answers
178 views

SharePoint 2013 Promoted Links in Elements.xml?

Does anyone have a working example of an <AllUserWebPart> or <View> within an Elements.xml file that includes a "Promoted Links" web part on a page. I just can't seem to get my ...
1
vote
2answers
480 views

uncheck the checkbox for overwriting a document by default in sharepoint 2013

We are trying to remove the checkbox which appears when uploading a new document in SharePoint (we are using 2013). By default this is checked. We would like it to be unchecked by default. I have ...
0
votes
3answers
1k views

SharePoint 2010 Deployment will not update Master pages because SPFile.CustomizedPageStatus is 'None'

We have the following scenario and are hoping someone can help: Original 2007 Publishing Site content database upgraded to 2010 Page templates in use have never been Ghosted because they were ...
2
votes
3answers
6k views

Current user in field

Can I set the default user in a user field to the current user -> [Me]? How is it done? The xml I already have is: <Field ID="{F117832D-E722-460C-A083-162C55B701F9}" Type="User" ...
2
votes
2answers
9k views

Sharepoint 2010: How to set default value for a lookup column (without InfoPath forms)

How can I set default value for a lookup column (when we adding new item)? For lists creating I am using site columns and site content types in elements.xml. I can set default value for text or date ...
3
votes
3answers
1k views

How to create web-related lookup field to 'pages' list?

I have SharePoint site collection 'http://microsoft.com/' with few child webs ex: http://microsoft.com/news/ I want to create lookup field to 'Pages' list. On each child web lookup field should ...
2
votes
2answers
2k views

What does the “Overwrite” attribute in a site column definition actually do

I'am deploying some site columns, content types and lists to my site via CAML definition. This works as expected. However, I faced problems with re-using site columns that reference my lists. My site ...
1
vote
1answer
686 views

Set Web Part Recommendation Settings in elements.xml or .webpart file

Is it possible to set the Recommendation Settings of a WebPart in the elements.xml or .webpart file? Just like you can do with Group, Title and Description...
0
votes
1answer
315 views

How to reference/write the file path in Elements.xml for UserControl in Sandbox Solution?

I have 1 solution (which is deploying as SandBox Solution). I have added JavaScript files, Images, Application Page & UserControl in one Module under project folder. I have one Element.xml file ...