[ https://issues.apache.org/jira/browse/OFBIZ-4481?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14550117#comment-14550117 ]
Jacques Le Roux commented on OFBIZ-4481: ---------------------------------------- Interestin, quick non functional patch review # This patch is not based on trunk, example is now in specialpurpose. # Are you sure (did not try because of 1), you need to use {code} && {code} in {code} <set field="ignoreDescription" value="${groovy: if(sortField && 'exampleName'.equals(sortField)) return 'Y' else return 'N'}"/> {code} ? > Adding a new attribute ignore-when (verry similar to use-when) that enable > rendering or not a field in list or multi form. > -------------------------------------------------------------------------------------------------------------------------- > > Key: OFBIZ-4481 > URL: https://issues.apache.org/jira/browse/OFBIZ-4481 > Project: OFBiz > Issue Type: Improvement > Components: ALL COMPONENTS > Affects Versions: Trunk > Reporter: youssef khaye > Priority: Minor > Labels: form, list, use-when > Attachments: ignoreField.patch > > > I need to define some parameters (using portlet attributes) that enable > showing or not some field in my portlet taht contains a form of type "list". > Or on a form of type list or multi, it is not possible to completely ignore a > field via use-when attribute. Instead it hides the title and the column > header became shifted from the table content. > For example I want to hide the description column from my form when > exampleName is choosen as sort-field. -- This message was sent by Atlassian JIRA (v6.3.4#6332)