Flash Drawing Control

Use a Flash drawing as a Select Values dialog

Technologies > User Interface Add-Ins >Flash Drawing Views > Use a Drawing as Select Values Dialog 

Note: With the release of ARCHIBUS V.23.2, all ARCHIBUS views were converted to use the HTML drawing control instead of the Flash drawing control. If you have previously created views that use the Flash drawing control, the view's drawings will still work.

For new views that you create, ARCHIBUS, Inc. recommends using the HTML control, as the Flash control is slated for desupport in future versions of ARCHIBUS. For information on converting existing views with Flash drawings to HTML format, see Convert views with the Flash drawing control to the HTML drawing control.

The user may wish to select a room id directly from a drawing. From the room id form field ellipsis, open a drawing view passing a restriction for the building and floor id. Specify the dialog's callback function, which will populate the form field with the selected rm_id value:

var controller = this;
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);
    }
});

In the dialog's JavaScript, specify a handler for the drawing onclick event. Call the callback function, passing the new room restriction:

function onClickHandler(pk, selected) {
    ...
    View.parameters.callback(restriction);

Use a Flash drawing in a Select Values action

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.