How to Create a View
Views as Filters
Dragon1 supports creating views. A view is a filter on top of a model.
Before creating a view normally data is entered, a model is created (such as a process model or application model) and a visualization is created.
This can be done in the Collaboration Application, Viewer Application, Architecture Repository application and Visual Designer application.
On the page Create a Model 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
- Click on View
- Click on Add View in the top button bar.
- Enter a name for the view in the name field in the edit screen.
- Link the view to a visualization in the edit screen.
- Enter an action script for the view in the action script field. Read the next paragraph for more info.
- Click on Save.
In the example we used the following ActionScript:
Clicking on this view will result in that objects without a value for the owner tag will get a red dot, objects with a value getting a green dot and a yellow box with the name of the owner.
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);
- addDotTags(unknown, orange);
- addImageBefore(tags,onpremise, danger);
- showRelatedObjects(classname, classid);
You can put a series of 10 functions into an action script field, separated by a semicolon.
In any atlas of visualization with a view, you can check the action script of the view, by clicking on the Edit button in the row of the view list.
Watch and Test the 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 search for views 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 back.
How to Create a 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
Open the Process Model in the Visual Designer.
- Go to the Visual Designer
- Open a Cabinet
- Select the newly created View
- Click on 'Edit' on the menu bar, and choose 'Edit Data' (CTRL + M).
Edit the Data for the View in the Visual Designer.
- Enter the modelid in the field Modelid as 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.
The created view in the Visual Designer.