Bug 506988

Summary: Add the possibility to hide Widgets
Product: [Modeling] Sirius Reporter: Jacob Geisel <jacob.geisel>
Component: PropertiesAssignee: Project Inbox <sirius.properties-inbox>
Status: NEW --- QA Contact:
Severity: enhancement    
Priority: P3 CC: laurent.redor, pierre-charles.david, steve.monnier
Version: 4.0.0Keywords: triaged
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Bug Depends on: 496072    
Bug Blocks:    

Description Jacob Geisel CLA 2016-11-03 11:21:34 EDT
Up to now it is possible to conditionally hide groups. 
It would be nice if this functionallity could be extended to the widgets and to add a preconditionExpression for deciding whether to show or not a Widget.
Comment 1 Jacob Geisel CLA 2016-11-03 12:00:05 EDT
There is a way to work around this using dynamic mappings and iterating over the currrent element:

<controls xsi:type="properties:DynamicMappingFor" iterator="it" iterableExpression="aql:OrderedSet{self}">
  <ifs predicateExpression="aql:self.isMyCondition()">
    Your widget here
  </ifs>
</controls>
Comment 2 Laurent Redor CLA 2016-11-08 03:46:44 EST
Thanks for your detailed enhancement submit.
We agree that it would be an interesting improvement.
Nevertheless, we have currently not planned to work on it in the following releases.