Define the Data to Show
-
In the Properties panel, go to
Data.
-
Select a Query that is either a data query or a data fusion, previously defined in the
Queries menu.
-
If you have selected a data query, also select a Result
Set.
Configure the Compare Table
To add objects from a
Result List visualization to the
Compare Table visualization, define a variable of List of
strings type. Then define what you want to show for each object in the
selection.
- In the Properties panel, go to Data.
-
In the Selection section, for Select context
variable, select a multivalued variable (List of
strings type) where Data Perspective Studio will save the object selection.
-
For Information source, select the field that identifies the
object in the list. For example, uri.
-
In the Header content section, for Text in
header, select the value to use as title. This can be a static value, a
translatable value, or a field value.
- Optional:
Select Show image and from Field to use as image
URL, choose a field containing the image URL.
| Use case | Description |
|---|
| Images stored on DFS Object Storage service |
You can use images stored by Data Factory Studio on the DFS Object Storage service of the 3DEXPERIENCE platform.
- From the navigation menu, select
Workspace configuration.
- Select
Dependencies.
- Add a dependency to the
Object Storage Toolkit
Data Project.
- Ingest your image files in a
Object Storage Bucket:
From
Storage, go to the
Upload tab, and upload the image
files. Or from
Pipeline, add a
Copy Object Data pipeline, which takes an
external S3 source to copy data to an internal DFS Object Storage.
- From
Storage, configure an Index
Unit storage. It must have a data model class with a
property that contains the image file id that is pushed in the object
storage.
- From
Pipeline, configure an Index Tabular
Data pipeline to ingest the file id from a source file
(
CSV, JSON, or
Parquet).
- In Data Perspective Studio, select the RESULT SET operator called by the
visualization.
- In the RESULT SET operator
Fields section, add a field to specify the
image path.
Give it a name and enter the following
Expression:
service:dfsobjectstorage://" + ObjectStorage.getDownloadPath(bucketId, fileId) Where:
bucketId is the service bucket that stores the
image file.
fileId is the image file ID.
The resulting path has the following
format: "service:dfsobjectstorage:///webservices/file/<bucketId>/<fileId>/downloadurl?<signature>"
|
| Images stored on 3DSpace | You can retrieve an image associated with an object type from the 3DSpace: - In Data Perspective Studio, edit the configuration of the RESULT SET operator called by the visualization.
- In the result set Fields section, add a field to specify the image path.
Give it a name and enter an Expression to retrieve images from
the 3DSpace service:
For images associated with object types, enter:
"service:3DSpace:///resources/v1/bps/custoicon/type/icons/render?type=<item.type>" Where
<item.type> specifies the object type icon to show. For
example, render?type=VPMReference (other examples:
Task, Risk,Project Space).
|
|---|
| Images stored in the Media library | You can specify static images stored in the Media library. For example, it can
be useful to define a default image as a fallback if there is no specific image
for an item shown in your visualization.
- In Data Perspective Studio, upload a default image in . For more information, see Uploading Media.
- Edit the configuration of the data query RESULT
SET operator called by the visualization.
- In the Fields section of the RESULT
SET operator, to specify the image path. Give it a name
and enter an Expression pointing to the
media: library. For example: input.image ||
"media://default.jpg"
|
|---|
| Images stored on external site | You can specify an https:// URL for an image stored on an external site. |
|---|
-
In Cell Content, you can define main categories to organize
the content, and define the Properties information to show for
each object.
-
For Property label, enter the title to show for the
property.
-
For Property field, select the field to use as
property.
-
Select Display as similarity item, to highlight the field
value with a specific color.
- Optional:
Click More options to open more formatting
properties.
The Compare Table shows the columns corresponding to the
objects selected in the Result List dynamically.
Note:
Users can click to change the object column to use as reference. The pinned
column then becomes the first column in the visualization.
Configure the Display
-
In the Properties panel, go to Display.
- From Display type, define the display type of the visualization between Card and No card.
The Card type applies the Cards configuration defined for the applied page theme in the menu.
-
In Title, specify the visualization title.
| Option | Description |
|---|
| Static value | To enter a static textual value. |
|---|
| Translatable value | To localize the title or label in other languages, you can select a translation key. You
define keys and translation values in the
Translation menu. |
|---|
| Expression
value |
To configure a dynamic title or label, you can enter an expression based on
the expression language. In your expression, you can use a
Variable with VARIABLES.<variable name>
and a
Translation key with I18N.<translation key
name>.
For example, you can make a dynamic title like Number of cars sold in
{{country}}, where the title string is associated with the
myKey translation key, and {{country}}
is a variable: I18N.myKey.replace("{{country}}",
VARIABLES.country)
If the variable value is France, you get Number
of cars sold in France if English is the preferred language,
Nombre de voitures vendues en France if French is the
preferred language...
You can also use Aggregations coming from the
RESULT SET of your data query.
Example 1: You can configure a count in the title to get Number of
cars: <count value>. In the RESULT
SET, from the Aggregations section,
define a count_aggr aggregation with Count
as function aggregation.

In the visualization, use the count_aggr aggregation in the
Expression value: "Number of cars: " +
cars.count_aggr Example 2: You can configure the title to
display Car sales in: <set of country values>. In the
RESULT SET, from the
Aggregations section, define a
countries_aggr aggregation with To Set
as function aggregation.
In the visualization, use the countries_aggr aggregation in
the
Expression value: "Car sales in: " +
cars.countries_aggr.joinToString(separator: ", ", limit: 3) to
display a title like Car sales in: Belgium, Denmark,
England...
|
- Optional: In Icon, select the icon that represents the visualization.
- Optional:
Select Hide header, if you want to show the
visualization without header (this hides the Title, the
icon if the visualization can show one in the header, and the
Actions menu).
- Optional: Select Minimizable to add a Minimize option in the Actions menu, allowing users to collapse the visualization.
You can also select Minimized by default if you want the default display to show a collapsed view of the visualization.
Add a Condition to Show the Visualization
You can add conditions to show or hide visualizations. This is useful to choose
whether to reveal or hide information, depending on a variable value or a user role.
You can also add conditions on home page
buttons, menu sections, and subsections.
Note:
If you add several conditions on the same visual element, Data Perspective Studio interprets them implicitly with OR operators (for example,
condition1 or condition2).
-
In the Properties panel, go to Display.
-
In the Conditional display section, click to add a Condition.
-
For Select item to compare, choose one of the following
options on the right of the field:
| Option | Description |
|---|
| Variable
value |
Use this option to select the variable that stores the condition values. For
example, select a variable called myvar with an
Initial value set to 5.
The supported types of variables are:
-
String
-
Integer
-
Float
-
Boolean
-
List for any of the above types.
|
| User roles |
Use this option to verify that the user has the role defined in Value.
|
-
For Comparator, select the condition comparator.
- If you selected
Variable value, you can choose between several operators. For
example, select <= if you want the condition to apply only
if the field value is lower or equal to the condition value.
- If you selected
User roles, you can choose between
contains or does not contain.
-
For Value, specify the condition value.
- If you selected
Variable value, specify a value corresponding to the variable
type.
For example, if the variable initial value 5 is
<= to the condition value 6,
the visualization is visible.

- If you selected
User roles, enter a role trigram.
For example, if the user roles contain AEP (trigram for the Data Viewer
(AEP)
role), the Data Perspective is visible to all users having the Data Viewer
(AEP)
role.
Add On-Click Actions
You can add effects when users click the Compare button.
- In the Properties panel, go to Actions.
-
Click to add a new effect.
-
Select the effect Behavior.
| Option | Description |
|---|
| Set variable |
Specify the variable that stores the data.
Target studio variable: Select the data query variable where Data Perspective Studio stores source data.
|
| Navigate to |
You can choose between the following modes:
-
Page (default mode): Select the destination page
to open when you click an object. The target is the destination page
where the user goes after clicking an object. For example, for a
visualization showing risks, clicking a risk could redirect the user to
a details page.
-
Static URL: Enter the link to the target page.
Links open a new browser tab and there is no limitation on the URL (for
example, it can be an external link to a PDF file).
-
String variable: Select a string variable
containing the URL to open. You define the URL in the Initial
value field of the variable, for example,
www.example.com.
|
Override the Applied Theme with a Specific Style
You can override the theme applied to all Data Workspace pages and visualizations with a specific style defining different display
settings.
Before you begin: You have defined a style in .
- In the Properties panel, go to Style.
- Select the style to apply to the visualization.
|