Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: ListInstanceFieldRef DisplayName required or optional? #622

Open
jhholm opened this issue Oct 10, 2023 · 0 comments
Open

Bug: ListInstanceFieldRef DisplayName required or optional? #622

jhholm opened this issue Oct 10, 2023 · 0 comments

Comments

@jhholm
Copy link

jhholm commented Oct 10, 2023

Using site columns in list instances. My use case uses translated column names in multiple languages. Currently having to use translated fieldnames in DisplayName attribute in the FieldRef tag inside a ListInstance element as DisplayName is a required attribute.

Looking at the schema documention, the description for the field says that it's an optional attribute, but the schema makes it required. Should this be changed in either the schema or the description. See lines 4511 and 4514 below.

<xsd:complexType name="ListInstanceFieldRef">
<xsd:annotation>
<xsd:documentation xml:lang="en">
Defines the binding between a ListInstance and a Field.
</xsd:documentation>
</xsd:annotation>
<xsd:complexContent>
<xsd:extension base="pnp:FieldRefFull">
<xsd:attribute name="DisplayName" type="xsd:string" use="required">
<xsd:annotation>
<xsd:documentation xml:lang="en">
The display name of the field to bind, only applicable to fields that will be added to lists, optional attribute.
</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:attribute name="Remove" type="xsd:boolean" use="optional" default="false">
<xsd:annotation>
<xsd:appinfo>Added with schema version 201705</xsd:appinfo>
<xsd:documentation xml:lang="en">
Declares if the FieldRef should be Removed from the list or library, optional attribute.
</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>

I think it should be (if it can be) optional, as the DisplayName should come from the FieldRef itself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants