Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Collision of multiple hasRelatedRecord validators

    I have 3 fields in a data source that all need to be validated against the same related datasource. Here are the field declarations.
    Code:
    <field name="HNU1" title="Notify User 1" type="text" length="4" detail="true" foreignKey="IPUSERS.UUID" mask=">AAAA" >
    	<validators>
    		<validator type="hasRelatedRecord" errorMessage="User ID is not defined." />
    	</validators>
    </field>
    <field name="HNU2" title="Notify User 2" type="text" length="4" detail="true" foreignKey="IPUSERS.UUID" mask=">AAAA">
    	<validators>
    		<validator type="hasRelatedRecord" errorMessage="User ID is not defined." />
    	</validators>
    </field>
    <field name="HNU3" title="Notify User 3" type="text" length="4" detail="true" foreignKey="IPUSERS.UUID" mask=">AAAA">
    	<validators>
    		<validator type="hasRelatedRecord" errorMessage="User ID is not defined." />
    	</validators>
    </field>
    All three fields are on the same dynamic form. If I type an undefined value in the first field, all 3 fields are flagged with the error. In addition, all 3 field titles change to match the first field and the value from the first field appears now in all 3 fields.

    #2
    Nevermind. I found my silly mistake.

    Comment

    Working...
    X