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

learn more… | top users | synonyms

0
votes
0answers
16 views

Separate Tab in Ribbon with separate custom action button into that tab with multiple features

On my SharePoint environment I have one solution which is deployed as a single feature with custom Ribbon tab along with more than two custom action button into it. Now my question is that, If I ...
1
vote
0answers
39 views

Changes not update for schema.xml on SharePoint hosted app update

I have done my changes in my list's schema.xml. I have added extra view over existing list. I have also publish my app earlier but when I update my app over existing one it will reflect all changes ...
0
votes
0answers
24 views

Event Receiver attached to a blog post list is not fired

I've created an event receiver for a blog post. Unfortunately it's not fired. What I've noticed is: ItemAdded is not executed ItemAdded is executed for a custom list but not for my post list. My ...
2
votes
1answer
28 views

ListInstance with predefined data in Field tag of Element.xml gives an error

I am trying to add data in Field tag like <Data> <Rows> <Row> <Field Name='Title'>Configuration</Field> <Field Name='JSONData'> { "URL":"https:/...
0
votes
0answers
17 views

Changing ClientWebPart title to hyperlink

I have created a sharepoint app but need to somehow create a link back to the site page the user came from if they click on the app. Preferably I would like to use the client webpart content to do ...
1
vote
0answers
126 views

Reading Each XML Node in Powershell to create list in SharePoint

I have an XML file which I got from running webservices of below format. It contains each List name in the site collection under node. Now using this file I have to create lists in another site ...
0
votes
1answer
10 views

Blocked duplication way of Elements.xml

I'm trying to blocked duplication by elements.xml I read that an element must be indexed and i have to use the EnforceUniqueValues So i added on my elements.xml Indexed="TRUE" EnforceUniqueValues="...
0
votes
2answers
129 views

parsing this XML in C# for a SharePoint Field

I have the below field xml which I get after calling a web service. I am getting the error Name cannot begin with the '=' character, hexadecimal value 0x3D. Line 1, position 2325. <Field ...
1
vote
0answers
52 views

List Content types not getting updating while adding a site column to already deployed site content type using elements.xml

I have a site content type deployed through element.xml and is used inside lists. I added one site column and referenced that in content type. So my element.xml looks like below <?xml version="1....
1
vote
1answer
19 views

Reading addIn XML using Xml.Linq

I have seen many instances of this question in this forum, with answers! So why am I still asking? Because I have tried for hours to read specific parts of the XML below using XDocument and yet no ...
0
votes
1answer
61 views

Elements.xml not setting document title property

I am writing a custom app to interact with a document library. During deployment I have a module to populate the document library with some sample data, however I am not able to populate the Title ...
0
votes
0answers
118 views

A duplicate field name “XXXX” was found when create a site from te

I backup a subsite as a template, and then I need to creat a new sub site in the same site collection from this template. There is always an error A duplicate field name "XXXX" was found I check file ...
0
votes
0answers
19 views

Declaratively created content type is losing event receivers on list

I declaratively created a content type which has an attached event receiver. I attached this ct to a list which is also being done via xml declaration. In principle all components are working. The ...
0
votes
1answer
48 views

How to add display-output-escaping= “yes” in SharePoint?

I am a fresh Share point worker. I made up a workflow to create item in List, and it works. After Creating in Word Fields, it has in both side of rich text. I wanted to add display-output-escaping= "...
0
votes
3answers
95 views

Best Practices to declaratively create Lookup Fields in a solution

I am often coming to the point that I need to create lookup fields pointing on lists which are also created in the solution. There are many ways to do it either by using feature receiver or by using ...
1
vote
1answer
57 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?
1
vote
1answer
76 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
96 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
469 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 ...
2
votes
1answer
475 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
1answer
449 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
20 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
37 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
92 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
351 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
66 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 ...
1
vote
1answer
181 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 xmlns="http://schemas....
0
votes
1answer
678 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 ...
1
vote
1answer
2k 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
560 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 ...>...
0
votes
1answer
51 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
772 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 version=...
0
votes
1answer
266 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 ...
1
vote
1answer
249 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
185 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
1k 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
242 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 ...
1
vote
0answers
265 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 ...
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 ...
1
vote
2answers
2k 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 ...
2
votes
1answer
768 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. http://api.openweathermap.org/data/2.5/...
1
vote
0answers
298 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
2answers
3k 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
2answers
1k 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
0answers
255 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
693 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 ...
2
votes
3answers
10k 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" Name="...
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
964 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
374 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 ...