As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
Hello,
I want to write about a newbie discover I did about test on "empty" value for advanced mode config tests as:
http://doc.nuxeo.com/display/Studio/Control+the+display+mode+of+a+widget
So the question was :
How to not show a document field in a custom layout if it's empty ?
Because I got I boring test such as :
#{layoutValue.dc.nature==null || layoutValue.dc.nature==''?'hidden':'view'}
The solution is in advanced mode configuration write, as example :
#{empty layoutValue.dc.nature?'hidden':'view'}
with key word "empty"
cf. http://mvel.codehaus.org/Value+Tests
Hi, note that this is not MVEL, this is EL
Ok thank you very much Anahide !
I will change the subject from "MVEL" ou "EL" to correct it in few minutes !