Want to update default value in an enum attribute within the schema | Community
Skip to main content
May 10, 2024
Solved

Want to update default value in an enum attribute within the schema

  • May 10, 2024
  • 1 reply
  • 592 views

Hi,

I want to update "LVL1" as the default string value in the attribute "current level", the attribute contains enumeration values, i am using the below code but not able to reflect the default values in schema for records having blank "current level".

<enumeration basetype="string" name="currentLevel">
<value label="LVL1" name="tierLVL1" value="LVL1"/>
<value label="LVL2" name="tierLVL2" value="LVL2"/>
<value label="LVL3" name="tierLVL3" value="LVL3"/>
</enumeration>

<element autopk="false" label="Event Log Customer Parameter" name="eventLogCustomerParameter">

<attribute default="LVL1" enum="currentLevel" label="Current Level" length="64" name="currentLevel" required="true" type="string"/>

</element>

 

Please provide solutions for this. currently i am getting blank in the "current level" attribute with above code.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by ParthaSarathy

Hi @sphawde ,

Use default="LVL1" inside enumeration tag.

 

<enumeration default="LVL1" basetype="string" name="currentLevel">

<value label="LVL1" name="tierLVL1" value="LVL1"/>

<value label="LVL2" name="tierLVL2" value="LVL2"/>

<value label="LVL3" name="tierLVL3" value="LVL3"/>

</enumeration>

1 reply

ParthaSarathy
Community Advisor
ParthaSarathyCommunity AdvisorAccepted solution
Community Advisor
May 10, 2024

Hi @sphawde ,

Use default="LVL1" inside enumeration tag.

 

<enumeration default="LVL1" basetype="string" name="currentLevel">

<value label="LVL1" name="tierLVL1" value="LVL1"/>

<value label="LVL2" name="tierLVL2" value="LVL2"/>

<value label="LVL3" name="tierLVL3" value="LVL3"/>

</enumeration>

~  ParthaSarathy S~  Click here to join ADOBE CAMPAIGN USER GROUP for Quarterly In-person | Hybrid | Virtual Meetups