Use highlight filters in a Flash drawing

Technologies / User Interface add-Ins / Flash Drawing Views / Floor Plan with Border Highlight and Filter

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 drawing control can filter highlighted room areas and borders. You can specify the highlight filter in a few ways:

Filter using restriction: Use this method to limit highlights based on specific view restriction. For example:

var highlightRestriction = new Ab.view.Restriction({
'rm.dv_id': 'FINANCE',
'rm.dp_id': 'International'
});
this.drawingControl.setHighlightRestriction(highlightREstriction);

Filter using data sources. Include one or more data sources of type DrawingControlHighlightsFilter in the view file. In this case the drawing panel displays the filter selector in the panel header. When the user selects a filter, the drawing control runs the query using the selected data source, and removes highlighting and border highlighting from all rooms that are not in the result set.

For example, if the current highlights data source returns all departments, and the current filter data source returns only vacant rooms, then the drawing control would highlight only vacant rooms by their departments.

Highlight filter data source id must start with the keyword iFilter, for example:

<dataSource id="iFlterRoomTypesDs"

To enable highlight filter feature, set the drawing panel property:

<panel type="drawing" highlightFilterSelector="true">

Filter using both restriction and data sources. You can specify both the filter restriction and the filter data sources. In this case the drawing control combines both filters.

Example View: http://localhost:8080/archibus/schema/ab-products/solutions/drawing/ab-ex-borders-and-filters-highlight-drawing.axvw

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