Use a Flash drawing in a Select Values action

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);
    }
});

 

Flash Drawing Control

Flash Drawing Control

 

View: http://localhost:8080/archibus/schema/ab-products/solutions/drawing-flash/ab-ex-drawing-select-value.axvw

Copyright © 1984-2018, ARCHIBUS, Inc. All rights reserved.