Element filter on list form

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Element filter on list form

Nicolas Malin
Hi,

I have an other enchancement for the Screen Engine.
When you have a list with many information, many user like to have some
line with different color to look quickly important information.

example : set line in blue when status order is created or line in red
if order amount is greater than 10000

An other example, for the project with Decathlon we use this :

<form name="ListReceiveInCrowd" target="ReceiveInCrowd"
paginate-target="ReceiveInCrowdSelection" type="multi"
list-name="listIt" paginate="true">
          <row-actions>
                <entity-one entity-name="Product"
value-name="product"></entity-one>
          </row-actions>
          <filter use-when="productHeight == null  || productHeight == 0
|| productWidth  == null  || productWidth  == 0 || productDepth  ==
null  || productDepth  == 0 || weight == null  || weight == 0"
                  style="warningRow"/>
          <field name="facilityId">...
          ...
   </form>

The goal is show receipt with a product that have missing information on
his measures and put the line in red. You can see the screenshot for
visual result ;) .

To do that, we create new element Filter associate to a form that take a
use-when condition and if is true apply the style define in attribute.

Do you have concerned by this features or do you have some suggestions ?

Nicolas

--
MALIN Nicolas
Trésorier de l'association Néogia
Tél : 06.17.66.40.06
http://www.neogia.org/