PASSED Manual Testing using the following steps:
- Navigate to Control Panel > Dynamic Data Lists
- Click "Manage Data Definitions"
- Click "Add"
- Enter a name for the data definition
- Drag and drop the "Boolean" field
- Click the "Source" button
- The source should look like this:
<root available-locales="en_US" default-locale="en_US">
<dynamic-element dataType="boolean" indexType="keyword" name="boolean1731" readOnly="false" repeatable="false" required="false" showLabel="true" type="checkbox" width="">
<meta-data locale="en_US">
<entry name="label">
<![CDATA[Boolean]]>
</entry>
<entry name="predefinedValue">
<![CDATA[false]]>
</entry>
<entry name="tip">
<![CDATA[]]>
</entry>
</meta-data>
</dynamic-element>
</root>
- Make these changes
- Change the value of the "name" attribute from "boolean####" to "signmeup".
- Change the value of the "repeatable" attribute from "false" to "true".
- Change the value of the "required" attribute from "false" to "true".
- Change the value of "[boolean]" to "[Sign Me Up]"
- Change the "false" in "predefinedValue" to "true"
- Click the "View" button
- Double click the boolean field
- Check these things:
- Field Label: Sign Me Up
- Name: signmeup
- Predefined Value: Yes
- Repeatable: Yes
- There is a red asterisk next to the label to indicate it is required.
- Click the "Source" button
- Add the following between </dynamic-element> and </root> (basically copy paste the structure of the first boolean field)
<dynamic-element dataType="boolean" indexType="keyword" name="signmeup" readOnly="false" repeatable="true" required="true" showLabel="true" type="checkbox" width="">
<meta-data locale="en_US">
<entry name="label">
<![CDATA[Sign Me Up]]>
</entry>
<entry name="predefinedValue">
<![CDATA[true]]>
</entry>
<entry name="tip">
<![CDATA[]]>
</entry>
</meta-data>
</dynamic-element>
- Click the "View" button
- Confirm that another boolean field that is exactly the same as the first one has been added
Reproduced on:
Tomcat 7.0.27 + MySQL 5. Portal 6.2.x GIT ID: 3647577b2b58d30b9e0cc1d46e7a70282c4e0415.
At this point, there was no "Source" button.
Fixed on:
Tomcat 7.0.34 + MySQL 5. Portal 6.2.x GIT ID: b5c4263b758004aaf166ac7e6ff4a8acf232267b.
There is a source button when adding a data definition. The user can edit the structure directly from the source view.
Additional test cases can be found on LIFERAYQA-4293.
Please note this Story depends on
LPS-31217