Facility Emitter

Facility Emitter icon The Facility Emitter is a special CygNet-aware control that leverages the facility receiving and sending model in Canvas allowing multi-directional linking between controls. With this control you can deliver sophisticated screens without script. The control takes facility information passed to it from a sending control (e.g., a tag chooser, map, or even a grid), applies a facility filter, then delivers filtered data to other receiving controls on the screen. The Facility Emitter is a hidden control, visible only in design mode.

The Facility Emitter allows for the creation of easy-to-maintain, no code Canvas screens; and it:

This control is supported in the Canvas Native view and the CygNet TWC web view.

Facility Emitter Example

In the following example, a Tag Chooser is configured to show Central Delivery Points (CDP) in a CygNet system (images #2 & #3), and as a facility sender the tag chooser passes a selected facility to each Facility Emitter shown on the left above each CygNet Grid (image #1). Each Facility Emitter is then configured to filter data on a compounded rule: Facility Type And Facility Attribute (%FacilityTag% token). Then the filtered facilities are sent to the receiving grid (images #2 & #3).

Facility Emitter compound filter

Sample Facility Emitter filter

In the image #1 below:

Connecting Multiple Facility Emitters

Facility Emitter controls can be daisy-chained together to deliver highly filtered data to any receiving control on a screen. In this example system, the Tank Facility Types are children of the Tank Battery Facility Types, so we need to use two Facility Emitters to get the desired information.

Facility Emitter in Canvas Design mode

1. Click the thumbnail to see
a sample Facility Emitter screen in Canvas Design view.
Four Facility Emitter controls are shown in black above and to the left of each CygNet Grid.
The red arrows show the passage of facility information from control to control.
The facility filter used by each Facility Emitter is shown in white.

 

Facility Emitter in Canvas Native view

2. Click the thumbnail to see
a sample Facility Emitter screen in the Canvas Native view.
The Tag Chooser passes all facilities that belong to the Girard CDP
to the hidden Facility Emitters, which then apply the filters shown in image #1.
The top CygNet Grid shows all Wells in the Girard CDP.
The middle CygNet Grid shows all Compressors in the Girard CDP.
The bottom CygNet Grid shows all Tanks in the Girard CDP.

 

Facility Emitter in Thin Web Client view

3. Click the thumbnail to see
the same Facility Emitter screen in the CygNet TWC web view.

Property Inheritance

Property Inheritance

Property inheritance, or sending and receiving, is a widely used concept in Canvas. The application supports an explicit relationship between screens, objects, and controls, where certain property values, such as facilities and SiteService details, are passed from one element to another via an inheritance framework. Screens, objects, and controls can be configured as property senders or property receivers and provide configuration options where you can explicitly define the source of the facility and SiteService. Depending on how you have your screens, objects, and controls configured, the facility and SiteService may be received from any one of the following sources:

Broadcasting

Screens and objects support an additional notification option to broadcast their facility and SiteService selection changes to other open screens. If configured, a <Broadcast> option is available to source the screen's facility and SiteService properties from another open screen.

For example, a Text Tool can be configured to get its facility from the screen and the screen can be configured to get its facility from a Tag Chooser. Or Screen_A might source its facility from Screen_B, which gets its facility from a Tag Chooser.

Receiver or Sender

The Facility Emitter control supports property inheritance as a receiver and sender of its SiteService and facility:

Receive from Send to
SiteService Facility SiteService Facility
self
screen
self
screen
other controls
none self
screen
other controls

The Facility Emitter control does not send its SiteService to other controls.

Related Topics