Technologies > User Interface Add-Ins > Parts for Forms > Select Value from Drawing
Include a custom select values action in the form field definition:
<field name="rm_id">
<action id="selectRoom">
<title>...</title>
</action>
</field>
In the button JavaScript, open a dialog window containing a drawing panel. A callback function is specified to populate the form field with the selected value:
View.openDialog('ab-ex-select-room.axvw', restriction, false, {
callback: function(res) {
var clause = res.clauses[2];
var value = clause.value;
controller.exDrawingSelectValue_form.setFieldValue('wr.rm_id', value);
}
});
Copyright © 1984-2018, ARCHIBUS, Inc. All rights reserved. |