How to Create a View

Note: the video is without sound or narration

Views as Filters

Dragon1 supports creating views. A view is a filter on top of a model.

Prerequisites

Before creating a view, data is normally entered, and a model (such as a process or application model) and a visualization are created.

This can be done in the Collaboration, Viewer, Architecture Repository, and Visual Designer applications.

On the Create a Model page, you can learn how to create a Model in the Collaboration Application and the Architecture Repository application.

On the page Create a Visualization, you can learn how to create a Visualization in the Collaboration Application and the Visual Designer application.

How to Create a View in the Collaboration Application?

To create a view:

  • Log in
  • Go to the Data Dashboard or the Collaboration Application
create view in the data dashboard application
  • Click on View
create views list in the collaboration application
  • Click on Add View in the top button bar.
  • Enter a name for the view in the name field on the edit screen.
  • Link the view to a visualization in the edit screen.
edit view in the collaboration application
  • Enter an action script for the view in the action script field. Read the next paragraph for more info.
view action script and edit in the collaboration application
  • Click on Save.

In the example, we used the following ActionScript:

  • addDotObjects(owner,nonempty,green);addDotObjects(owner,empty,red); showAttributeAsLabel(owner);

Clicking on this view will result in objects without a value for the owner tag getting a red dot, objects with a value getting a green dot, and a yellow box with the owner's name.

Attributes for the Views

  • type: default - This configures a view as a default view for the visualization upon showing.

Action Script for the Views

On this page, you can learn more about action script

Below are a few simple action script examples to use:

  • colorizeTags(cloud, cyan);
  • colorizeObjects(implemented, Not, green);
  • addDotObjects(owner,empty,red);
  • addDotTags(unknown, orange);
  • addImageBefore(tags,onpremise, danger);
  • showAttributeAsLabel(owner);
  • toggleRoutingOrthogonal();
  • showContextRels();
  • toggleArea(Projects);
  • showAll();
  • showRelatedObjects(classname, classid);
  • findShowSolutions(outdated,boxin,blue);

You can put a series of 10 functions into an action script field, separated by a semicolon.

In any visualization atlas, you can check the view's action script by clicking the Edit button in the view's row in the list.

Watch and Test the View in the Viewer

dragon1 watch and test view in the Viewer

To see the view in action:

  • Go to the Viewer
  • Select the Atlas with the Visualization that is linked to the View
  • Select the Visualization
  • Click on the view

Alternatively, you can search for views in the Viewer or in the Search application.

The result will be a link to the views, visualizations, and atlases it has found.

The better you 'tag' a view, the easier it can be found again.

How to Create a View in the Architecture Repository application?

dragon1 create view in the Architecture Repository application

Create a View in the Architecture Repository Application.

  • Log in
  • Go to the Architecture Repository
  • Open a Cabinet
  • Select a folder
  • Insert a View from the Menu
  • Give a name for the view
dragon1 open process model in visual designer

Open the Process Model in the Visual Designer.

  • Go to the Visual Designer
  • Open a Cabinet
  • Select the newly created View
  • Click 'Edit' on the menu bar, and choose 'Edit Data' (CTRL + M).
dragon1 edit data for view in visual designer

Edit the Data for the View in the Visual Designer.

  • Enter the modelid in the field Modelid as a variable and the modelid you want to link to this view.
  • In the field Ruleevent enter the value " onclick ".
  • In the field Rulecondition enter the value " Process.Type='Sales' ".
  • In the field Ruleaction enter the value " fill='green' ".
  • In the field Ruleaction2 enter the value " opacitynonmatching=0.4 ".
  • Click on the "Apply" button

The Process Model in the newly created view will light up.

dragon1 created view in visual designer

The created view in the Visual Designer.