Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [elements-xml]

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

1
vote
0answers
29 views

Field Validation in Element.xml (Schema.xml) SharePoint 2013 List

I have custom list in SharePoint 2013. That custom list made in element.xml and schema.xml. I am trying to put validation on list field using below method. For ex : https://docs.microsoft.com/en-us/...
1
vote
1answer
227 views

How to count SharePoint list elements using CAML Query

I have got CAML Query. How to count how many elements is in the list checked ? Here is javascript code: var siteUrl = '/sites/MCUW-IT/kostka-pilotaze/restauracje-pilotaże/'; var clientContext =...
1
vote
1answer
39 views

Register CustomAction link to site settings from Element.xml from sppkg

Is it possible to register CustomAction link to site settings from Element.xml from SPFx package (SPPKG) in SharePoint Online? I am able to create following using Element xml file using SPPKG; ...
0
votes
0answers
21 views

Add Current User's username to the UrlAction url paramater in Elements.xml

I have a SharePoint 2013 on-premise farm with 160+ host named site collections. I have a webpart that displays a link to another site to change their password. The url to the site that handles ...
1
vote
1answer
54 views

SharePoint Online XML Field DateTime default on minute and NOT nearest half an hour

I have a Field (Site Column) element which is type DateTime <Field DisplayName="Created" Name="Created" StaticName="Created" Type="DateTime" ID="{28C9A5E9-513C-415A-8C41-E7A3D767EABD}" Group="...
1
vote
1answer
495 views

Creating list columns in spfx Web Part

I am able to create a custom list in spfx webpart through elements.xml with the following xml snippet: <?xml version="1.0" encoding="utf-8"?> <Elements xmlns="http://schemas.microsoft.com/...
5
votes
3answers
2k views

Create List using SPFX

I am trying to create custom list using SharePoint Framework. I created a folder with name Assets under SharePoint folder and created a element.xml in the Assets and updated the package-solution.json ...
1
vote
1answer
356 views

Difference between Elements.xml and Schema.xml

Let's say I have following elements in my solution: Site Column: <?xml version="1.0" encoding="utf-8"?> <Elements xmlns="http://schemas.microsoft.com/sharepoint/"> <Field ...
0
votes
1answer
50 views

Why does my UserControl break MDS (Minimal Download Strategy)?

I've created a user control in a SharePoint 2013 farm solution, and added it to the AdditionalPageHead control. <Control Id="AdditionalPageHead" Sequence="90" ControlSrc="~/_ControlTemplates/15/...
0
votes
0answers
142 views

JS File in custom ribbon button loads on all pages

We have a custom ribbon button and we have added code to refer JS file in it. The ribbon button is bound to content type. <CustomAction Id="MyProject.RibbonButton" Location="ScriptLink" ScriptSrc ...
0
votes
0answers
38 views

Deploying content type from visual studio takes incorrect internal names

I am facing probably the weirdest problem I have ever seen. We are deploying content types using Visual Studio and here is a sample code. <?xml version="1.0" encoding="UTF-8"?> <Elements ...
0
votes
1answer
55 views

retrieve splistcolumn from xml format and bind it to labels and textbox fields in sharepoint 2013

Am having a string which stores the values as xml format,i need to parse it and extract values from nodes and bind it with textboxes. My env. is SP 2013 and i am using JSOM/CSOM to read/insert values ...
0
votes
1answer
192 views

Custom ribbon button appearing as disabled

I am trying to add two custom ribbon button in a group for document library. Below is the code in Elements.xml. But when I deploy this code the buttons appear as disabled (either I select the document ...
1
vote
1answer
703 views

Error occurred in deployment step 'Activate Features': The list “Lists/Issue Manage” doesn't exist. Please fix the ListUrl attribute

I am working on sharepoint server 2013. and i have developed an event receiver which fires when lists items are updated. now i define the following setting inside the elements.xml for my solution:- &...
0
votes
1answer
2k views

SharePoint 2016 - Adding Custom Button to the Ribbon

I am trying to add a custom button to the ribbon on the Page Tab. I have successfully done this with SharePoint 2010 and 2013, but not sure why it's not working with 2016. I am using the Elements.xml ...
0
votes
0answers
171 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
1answer
61 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:/...
1
vote
0answers
570 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
321 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
78 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
31 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
182 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
31 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
503 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
426 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
233 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
174 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
270 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
825 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
3k 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
1k 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
21 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
53 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
248 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
1k 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
110 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
543 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
2k 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
1answer
3k 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 ...
2
votes
1answer
1k 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
64 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
2k 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
592 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
971 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
220 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
2k 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
389 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 ...
2
votes
0answers
373 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
4answers
3k 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 ...