Velocity Widget: How to get enumerations from other projects

Description
DreiBaer
Posts: 14
Joined: Thu Oct 18, 2018 9:52 am

Velocity Widget: How to get enumerations from other projects

Postby DreiBaer » Thu May 14, 2020 9:29 am

Hi all,

in my velocity widget I want to load enumerations in the configuration pane. These enumerations are depended on a WI-Type in another project.

Here ist my dependencies.vm:


Here ist my parameters.vm:

Code: Select all

$parameters.put("title", $factory.string("Title").build())

$parameters.put("dataSet", $factory.dataSet("Data Set").dependencySource(true).build())

#set($titleComposite = $factory.string("Title").value("").build())

#set($coolingsComposite = $factory.enumeration("Cooling-System", "coolings").scope($scope).dependencyTarget(true).allowNoValue(false).build())
#set($composite = $factory.composite("Column").add("title", $titleComposite).add("coolings", $coolingsComposite).build())
$parameters.put("columns", $factory.multi("Columns", $composite).build())


So far everything works - but only when the Widget is used on a LiveReport-Page in the SAME project.
When I use it (the Widget) in another project and select in the DataSet the project where the WI-Type and Enumerations are defined, the coolingsComposite doesn't work.

I think somewhere in these files I have to do some configuration. But I don't know how.

Whats going on here? :?:


Best regards
DreiBaer

Return to “Polarion Application Lifecycle Management (ALM)”

Who is online

Users browsing this forum: AldenEt, Google [Bot], RidgeJelo and 18 guests