Verify That a VPM Instance Matches a Configuration Filter
This procedure shows how you can verify in the data query that a VPM instance
matches a configuration filter using the PLM function Evaluate
Filter.
Before you begin: You have created a Data Perspective and defined a data query.
Context: You need to create a data query with a SEARCH operator that
retrieves VPM references. As you can have several instances of the same part in a product,
you must configure the effectivity of this part.
-
In
Queries, configure a SEARCH operator to
filter product configurations.
-
For Index unit, select
3DSpace.
-
In Variable, click Value, and
select
er.co.VPMInstance as index unit class.
-
Specify the name of the variable, for example
vpminstance.
-
Create an input parameter to show only the VPM reference objects that are part of a
selected configuration. This input parameter will fill the variable with the filter
parameter name.
-
From the top bar, click $ Input parameters.
-
In the Parameters panel, click to add a
Parameter.
-
Give a name to the parameter. For example,
configfltr.
-
For Return type, select
String.
-
For Default value, define an empty string by entering
"".
-
Select DataQuery parameter to make the input parameter
available in data queries.

-
Link a FILTER operator to the SEARCH
operator, to see whether the
vpminstance matches the configuration
filter.
-
In Predicate, click to open the Expression
Editor.
-
Enter:
(vpminstance.`PLMInstance.V_hasConfigEffectivity`==true) AND
(plm.evaluateFilter(effectivity:vpminstance.`PLMInstance.V_EffectivityCompiledForm`
, filter:$configfltr )).
Where $configfltr is the name the Input
parameter that you created in the previous step.
-
Link a RESULT SET operator to the
FILTER operator.
-
Click Retrieve all fields from input to retrieve all data
query fields automatically.
-
Click to add a custom field
manually. Call the field VPMREF_Name.
This field contains the name of each VPM instance.
-
For the VPMREF_Name field, enter the expression:
(vpminstance -> to AS Item<er.bo.VPMReference>).`PLMEntity.V_Name`
-
Click
Run.
-
In the first select box, click and select a RESULT SET.
-
Click
Add view, and select Add table
view.
-
To test your RESULT SET, select the columns to show in the
table view:
VPMREF_Name and
PLMInstanceV_EffectivityCompiledForm.
Open ENOVIA Advanced Filters from the Data Perspective
This procedure shows how to open the ENOVIA
Advanced Filters panel from the Data Perspective. It then describes how to apply a configuration filter in the Advanced
Filters panel, to filter out data in your Data Perspective.
-
Configure a
physicalID context variable.
-
From the navigation menu, select .
-
Click to add a new
variable.
-
For Name, enter
physicalID.
-
For Type, select String.
-
To apply a configuration filter to the page visualizations, add a Dropdown
menu visualization to your page.
-
From the navigation menu, select
Pages.
-
Define a Label and an Icon for the
Dropdown menu.
-
Click to add a new effect
on-click.
-
For Behavior, select Open/Close advanced
filters panel.
-
In Physical ID source, select the
physicalID context variable.

When you click the Dropdown menu visualization, the ENOVIA
Advanced Filters panel opens on the left of the Data Perspective.
-
Create an On filtering by product configuration effect.
-
From the navigation menu, select .
-
Under On filtering by product configuration, click
to add a new effect.
This step creates a new Set variable effect.
-
For Target studio variable, specify the variable that
stores data when the user applies a configuration filter in the ENOVIA
Advanced Filters. In our example, select
configfltr.
-
Make sure to bind the variable to a data query linked with an $ Input
parameter.
When you add a filter in the ENOVIA
Advanced Filters panel and click Apply,
the Data Perspective refreshes and filters data accordingly.
-
Add a visualization to show the data to filter.
-
From the navigation menu, select
Pages.
-
Add a visualization to your page, for example a
Result List.
-
In Query, select your data query.
-
In Result set, select the RESULT
SET configured in the previous section.
-
From the Hit content section, select the
VPMREF_Name field.
Result: After this procedure, when you click the Dropdown menu, the Data Perspective asks:
- The ENOVIA
Advanced Filters panel to open.
- The ENOVIA
Advanced Filters panel to be configured to filter on a specific
product. That is why you need the variable containing the physical ID of the product to
filter in advance.
|