Related with issue 29612: Adds display logic to Grid Configuration
authorAugusto Mauch <augusto.mauch@openbravo.com>
Mon, 18 May 2015 18:13:47 +0200
changeset 27119 a9a39c837d3b
parent 27118 c8311f845ea4
child 27120 e9ae17759f2f
Related with issue 29612: Adds display logic to Grid Configuration

Adds display logic to the Field tab of the Grid Configuration:
- If the Allow Filter field is set to No, the following fields are hidden: Text Field Filter Behavior, Field On Change, Threshold to Trigger Filter on Text Field, Disable Foreign Key Combo, Allow Filtering FOreign Keys by its identifier and Unfiltered Foreign Key Combo
- If the Disable Foreign Key Combo field is set to Yes, the following fields are hidden: Allow Filtering FOreign Keys by its identifier and Unfiltered Foreign Key Combo
modules/org.openbravo.client.application/src-db/database/sourcedata/AD_FIELD.xml
--- a/modules/org.openbravo.client.application/src-db/database/sourcedata/AD_FIELD.xml	Mon May 18 12:28:44 2015 +0200
+++ b/modules/org.openbravo.client.application/src-db/database/sourcedata/AD_FIELD.xml	Mon May 18 18:13:47 2015 +0200
@@ -76,6 +76,7 @@
 <!--03724122C8F744FDB387B47B7907E0D3-->  <AD_COLUMN_ID><![CDATA[7E5D4C62298D4310A12AB5F28B9D2C51]]></AD_COLUMN_ID>
 <!--03724122C8F744FDB387B47B7907E0D3-->  <IGNOREINWAD><![CDATA[N]]></IGNOREINWAD>
 <!--03724122C8F744FDB387B47B7907E0D3-->  <ISDISPLAYED><![CDATA[Y]]></ISDISPLAYED>
+<!--03724122C8F744FDB387B47B7907E0D3-->  <DISPLAYLOGIC><![CDATA[(@Filterable@!'N' & @Disablefkcombo@!'Y')]]></DISPLAYLOGIC>
 <!--03724122C8F744FDB387B47B7907E0D3-->  <DISPLAYLENGTH><![CDATA[60]]></DISPLAYLENGTH>
 <!--03724122C8F744FDB387B47B7907E0D3-->  <ISREADONLY><![CDATA[N]]></ISREADONLY>
 <!--03724122C8F744FDB387B47B7907E0D3-->  <SEQNO><![CDATA[120]]></SEQNO>
@@ -3353,7 +3354,7 @@
 <!--8E267DE7CA7E4C849CD0CF14C5E7AC25-->  <AD_COLUMN_ID><![CDATA[26DAD0E63D554C5FA0493765032BA0B0]]></AD_COLUMN_ID>
 <!--8E267DE7CA7E4C849CD0CF14C5E7AC25-->  <IGNOREINWAD><![CDATA[N]]></IGNOREINWAD>
 <!--8E267DE7CA7E4C849CD0CF14C5E7AC25-->  <ISDISPLAYED><![CDATA[Y]]></ISDISPLAYED>
-<!--8E267DE7CA7E4C849CD0CF14C5E7AC25-->  <DISPLAYLOGIC><![CDATA[@IsLazyFiltering@='N'|(@IsLazyFiltering@='D'&@LazyFilteringSystemLevel@!'Y')]]></DISPLAYLOGIC>
+<!--8E267DE7CA7E4C849CD0CF14C5E7AC25-->  <DISPLAYLOGIC><![CDATA[(@Filterable@!'N' & (@IsLazyFiltering@='N'|(@IsLazyFiltering@='D'&@LazyFilteringSystemLevel@!'Y')))]]></DISPLAYLOGIC>
 <!--8E267DE7CA7E4C849CD0CF14C5E7AC25-->  <DISPLAYLENGTH><![CDATA[1]]></DISPLAYLENGTH>
 <!--8E267DE7CA7E4C849CD0CF14C5E7AC25-->  <ISREADONLY><![CDATA[N]]></ISREADONLY>
 <!--8E267DE7CA7E4C849CD0CF14C5E7AC25-->  <SEQNO><![CDATA[100]]></SEQNO>
@@ -3410,6 +3411,7 @@
 <!--90A8FCE2F0674325863B3F793AB79601-->  <AD_COLUMN_ID><![CDATA[48A069D3607C4ACEA7ACCBA679A00B75]]></AD_COLUMN_ID>
 <!--90A8FCE2F0674325863B3F793AB79601-->  <IGNOREINWAD><![CDATA[N]]></IGNOREINWAD>
 <!--90A8FCE2F0674325863B3F793AB79601-->  <ISDISPLAYED><![CDATA[Y]]></ISDISPLAYED>
+<!--90A8FCE2F0674325863B3F793AB79601-->  <DISPLAYLOGIC><![CDATA[(@Filterable@!'N' & @Disablefkcombo@!'Y')]]></DISPLAYLOGIC>
 <!--90A8FCE2F0674325863B3F793AB79601-->  <DISPLAYLENGTH><![CDATA[60]]></DISPLAYLENGTH>
 <!--90A8FCE2F0674325863B3F793AB79601-->  <ISREADONLY><![CDATA[N]]></ISREADONLY>
 <!--90A8FCE2F0674325863B3F793AB79601-->  <SEQNO><![CDATA[130]]></SEQNO>
@@ -3438,7 +3440,7 @@
 <!--92EDD1AEF5B545648BB0F8FE550ACF67-->  <AD_COLUMN_ID><![CDATA[B85EDCE11C844C52904C24B4246BE515]]></AD_COLUMN_ID>
 <!--92EDD1AEF5B545648BB0F8FE550ACF67-->  <IGNOREINWAD><![CDATA[N]]></IGNOREINWAD>
 <!--92EDD1AEF5B545648BB0F8FE550ACF67-->  <ISDISPLAYED><![CDATA[Y]]></ISDISPLAYED>
-<!--92EDD1AEF5B545648BB0F8FE550ACF67-->  <DISPLAYLOGIC><![CDATA[@IsLazyFiltering@='N'|(@IsLazyFiltering@='D'&@LazyFilteringSystemLevel@!'Y')]]></DISPLAYLOGIC>
+<!--92EDD1AEF5B545648BB0F8FE550ACF67-->  <DISPLAYLOGIC><![CDATA[(@Filterable@!'N' & (@IsLazyFiltering@='N'|(@IsLazyFiltering@='D'&@LazyFilteringSystemLevel@!'Y')))]]></DISPLAYLOGIC>
 <!--92EDD1AEF5B545648BB0F8FE550ACF67-->  <DISPLAYLENGTH><![CDATA[2]]></DISPLAYLENGTH>
 <!--92EDD1AEF5B545648BB0F8FE550ACF67-->  <ISREADONLY><![CDATA[N]]></ISREADONLY>
 <!--92EDD1AEF5B545648BB0F8FE550ACF67-->  <SEQNO><![CDATA[110]]></SEQNO>
@@ -3887,6 +3889,7 @@
 <!--A8B5F8D379694A84B2AA2C77E11C76BF-->  <AD_COLUMN_ID><![CDATA[F3D26B0C148D474BB6339A824DA96645]]></AD_COLUMN_ID>
 <!--A8B5F8D379694A84B2AA2C77E11C76BF-->  <IGNOREINWAD><![CDATA[N]]></IGNOREINWAD>
 <!--A8B5F8D379694A84B2AA2C77E11C76BF-->  <ISDISPLAYED><![CDATA[Y]]></ISDISPLAYED>
+<!--A8B5F8D379694A84B2AA2C77E11C76BF-->  <DISPLAYLOGIC><![CDATA[@Filterable@!'N']]></DISPLAYLOGIC>
 <!--A8B5F8D379694A84B2AA2C77E11C76BF-->  <DISPLAYLENGTH><![CDATA[60]]></DISPLAYLENGTH>
 <!--A8B5F8D379694A84B2AA2C77E11C76BF-->  <ISREADONLY><![CDATA[N]]></ISREADONLY>
 <!--A8B5F8D379694A84B2AA2C77E11C76BF-->  <SEQNO><![CDATA[70]]></SEQNO>
@@ -5073,9 +5076,10 @@
 <!--E649C05D297F48C3B55C8F93991AE2C5-->  <AD_COLUMN_ID><![CDATA[669F7189A86E4EBEB78165527CC81658]]></AD_COLUMN_ID>
 <!--E649C05D297F48C3B55C8F93991AE2C5-->  <IGNOREINWAD><![CDATA[N]]></IGNOREINWAD>
 <!--E649C05D297F48C3B55C8F93991AE2C5-->  <ISDISPLAYED><![CDATA[Y]]></ISDISPLAYED>
+<!--E649C05D297F48C3B55C8F93991AE2C5-->  <DISPLAYLOGIC><![CDATA[@Filterable@!'N']]></DISPLAYLOGIC>
 <!--E649C05D297F48C3B55C8F93991AE2C5-->  <DISPLAYLENGTH><![CDATA[60]]></DISPLAYLENGTH>
 <!--E649C05D297F48C3B55C8F93991AE2C5-->  <ISREADONLY><![CDATA[N]]></ISREADONLY>
-<!--E649C05D297F48C3B55C8F93991AE2C5-->  <SEQNO><![CDATA[140]]></SEQNO>
+<!--E649C05D297F48C3B55C8F93991AE2C5-->  <SEQNO><![CDATA[115]]></SEQNO>
 <!--E649C05D297F48C3B55C8F93991AE2C5-->  <ISSAMELINE><![CDATA[N]]></ISSAMELINE>
 <!--E649C05D297F48C3B55C8F93991AE2C5-->  <ISFIELDONLY><![CDATA[N]]></ISFIELDONLY>
 <!--E649C05D297F48C3B55C8F93991AE2C5-->  <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>