I have created three fields on the customer contract class. I can see them all but can only save data to one of them. I can only save to the Notes field. I tried changing the others to AttributeText but it made no difference. Upon saving the record, it fails. It is like a change flag is not being flipped.
It is not storing anything. However, I solved this. The field id values had spaces in two of the entries. I removed the spaces, cleaned up the columns and had the system recreate them and it worked.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hey folks,
I have created three fields on the customer contract class. I can see them all but can only save data to one of them. I can only save to the Notes field. I tried changing the others to AttributeText but it made no difference. Upon saving the record, it fails. It is like a change flag is not being flipped.
The code looks like this.
<class id="user-content-CustomerContract">
<fields>
<field id="user-content-Notes" xsi:type="AttributeText" _delta="define">
<sql>notes</sql>
<default_value>
<is_null_allowed>true</is_null_allowed>
</default_value></field>
<field id="user-content-Work Order" xsi:type="AttributeString" _delta="define">
<sql>work_order</sql>
<default_value>
<is_null_allowed>true</is_null_allowed>
</default_value></field>
<field id="user-content-Supplier Number" xsi:type="AttributeString" _delta="define">
<sql>supplier_number</sql>
<default_value>
<is_null_allowed>true</is_null_allowed>
</default_value></field>
</fields>
<methods>
<presentation _delta="redefine">
</presentation></methods></class>
Have you checked the table in the Database to see what it is storing there?
It is not storing anything. However, I solved this. The field id values had spaces in two of the entries. I removed the spaces, cleaned up the columns and had the system recreate them and it worked.