1

This is my property and I am not able to set this on any document. The | separates the value in a pair like value and text.

<property name="ipo:bankDetail">
     <type>d:text</type>
     <default>Approve</default>
     <constraints>

      <constraint type="LIST">
       <parameter name="allowedValues">
        <list>
         <value>Approve|Some Approval label</value>
         <value>Reject|Some Reject label</value>
        </list>
       </parameter>
      </constraint>
     </constraints>
    </property>

While setting the property on any document I am getting below error message and unable to set the property

03050013 Found 1 integrity violations: Invalid property value: Node: workspace://SpacesStore/c675df16-9625-4a01-8629-830a75b2347d Name: Barcode Blog.txt Type: {http://www.test.com/model/content/1.0}contentType Property: {http://www.test.com/model/content/1.0}bankDetail Constraint: 03050012 The value is not an allowed value: Reject

I am following the question

Vikash Patel
  • 1,328
  • 9
  • 28
  • 1
    You allow the values `Approve|Some Approval label` and `Reject|Some Reject label`. `Reject` is not in this list. –  Apr 05 '18 at 12:01
  • Thanks, for your response.Yes, you are absolutely right. – Vikash Patel Apr 05 '18 at 12:39
  • Is there any way to allow the same if the 'Approve|Some Approval label' is saved still I just wanted to display 'Some Approval label'? – Vikash Patel Apr 05 '18 at 12:42

1 Answers1

1

To display a different label you should use { }, for example <value>active|{Some Approval label}</value>

Otherwise, you can put you label in a message file (.properties) and use the message id, for example <value>Approve|{label.approve}</value>

Oussama Werfelli
  • 513
  • 3
  • 14