i tried it - and it works like a charm. Thank you very much.
I'd like to add the following hints for someone also implementing this:
I have a field "POSITION" in the DB (Oracle) holding the information. The field has a unique constraint set up like this:
Code:
ALTER TABLE t_status ADD CONSTRAINT UC_status_position UNIQUE ( position ) [I]INITIALLY DEFERRED[/I];
Then I add the column twice in the .ds.xml:
Code:
<field name="POSITION" type="int" required="true" editorType="spinner"> <validators> <validator type="isUnique" errorMessage="Position must be unique!"></validator> </validators> </field> <field name="POSITION_DND" nativeName="POSITION" hidden="true" type="int"></field>
Thanks again,
Blama
Leave a comment: