Example: Attaching an Object to a Cache

Attach a dashboard table object to a previously created cache.

You cannot directly connect dashboard objects to streams that make updates or deletes against keyed entries. Connect a cache to the stream, then connect the object to the cache.

Attach any object to streams, either directly or through caches, by setting the object's value property under the Data heading in the Object Properties pane. For a table object, this property is called valueTable.

In this example, first attach a table to a dashboard, then use the valueTable property to attach the table to a previously created cache that connects to an Event Stream Processor stream.

  1. From the Tables tab in the Object Palette, select a table, then click the canvas to add the table object to the dashboard.
  2. Import the cache to the dashboard project:
    1. Select Tools > Options > Caches.
    2. Click Add and select the cache.
    3. Click Apply, then OK.
  3. Right-click the valueTable property of the table object, and go to Attach To Data > Cache.
    This opens a dialog box to configure the datasource.
  4. Choose the cache from step 2.
  5. Choose Current in the Table field and select the columns you want to view.
  6. (Optional) Select Filter Rows to Basic or Advanced to view a subset of the data.
  7. Click Apply, then OK.