modules/org.openbravo.userinterface.selector/src-db/database/sourcedata/AD_REF_TABLE.xml
author Shankar Balachandran <shankar.balachandran@openbravo.com>
Wed, 24 Oct 2012 11:11:00 +0200
changeset 18270 90820fdcd175
parent 10265 cde1d8da7761
permissions -rw-r--r--
Fixes Issue 0022031: Now selectors are working properly but not as before

The way selectors were working was modified to work properly in this issue https://issues.openbravo.com/view.php?id=21470.Prior to this change, even though 'startsWith' was set, the suggestion box always worked with the 'Contains' filter. Because of the change the behaviour was different from the existing behaviour of the selector, so modified the suggestion text match style from 'startsWith' to 'Contains' so that the existing behaviour will be restored.
harpreet@9091
     1
<?xml version='1.0' encoding='UTF-8'?>
harpreet@9091
     2
<data>
harpreet@9091
     3
<!--37BA0878B5494179AB05545C9B9805B7--><AD_REF_TABLE>
harpreet@9091
     4
<!--37BA0878B5494179AB05545C9B9805B7-->  <AD_REFERENCE_ID><![CDATA[37BA0878B5494179AB05545C9B9805B7]]></AD_REFERENCE_ID>
harpreet@9091
     5
<!--37BA0878B5494179AB05545C9B9805B7-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
harpreet@9091
     6
<!--37BA0878B5494179AB05545C9B9805B7-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
harpreet@9091
     7
<!--37BA0878B5494179AB05545C9B9805B7-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
harpreet@9091
     8
<!--37BA0878B5494179AB05545C9B9805B7-->  <AD_TABLE_ID><![CDATA[A2F880F9981349E2A6A57BD58267EBCE]]></AD_TABLE_ID>
harpreet@9091
     9
<!--37BA0878B5494179AB05545C9B9805B7-->  <AD_KEY><![CDATA[BD426B492A504790B269B2A56374C2C5]]></AD_KEY>
harpreet@9091
    10
<!--37BA0878B5494179AB05545C9B9805B7-->  <AD_DISPLAY><![CDATA[01645009C7E94EFCAEF1184DFFD85A39]]></AD_DISPLAY>
harpreet@9091
    11
<!--37BA0878B5494179AB05545C9B9805B7-->  <ISVALUEDISPLAYED><![CDATA[N]]></ISVALUEDISPLAYED>
harpreet@9091
    12
<!--37BA0878B5494179AB05545C9B9805B7-->  <WHERECLAUSE><![CDATA[OBUISEL_Selector_Id=@OBUISEL_Selector_ID@]]></WHERECLAUSE>
harpreet@9091
    13
<!--37BA0878B5494179AB05545C9B9805B7-->  <ORDERBYCLAUSE><![CDATA[name]]></ORDERBYCLAUSE>
harpreet@9091
    14
<!--37BA0878B5494179AB05545C9B9805B7--></AD_REF_TABLE>
harpreet@9091
    15
harpreet@9091
    16
<!--D30C26E6452843B4BA4F8D71A651EB80--><AD_REF_TABLE>
harpreet@9091
    17
<!--D30C26E6452843B4BA4F8D71A651EB80-->  <AD_REFERENCE_ID><![CDATA[D30C26E6452843B4BA4F8D71A651EB80]]></AD_REFERENCE_ID>
harpreet@9091
    18
<!--D30C26E6452843B4BA4F8D71A651EB80-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
harpreet@9091
    19
<!--D30C26E6452843B4BA4F8D71A651EB80-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
harpreet@9091
    20
<!--D30C26E6452843B4BA4F8D71A651EB80-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
harpreet@9091
    21
<!--D30C26E6452843B4BA4F8D71A651EB80-->  <AD_TABLE_ID><![CDATA[A2F880F9981349E2A6A57BD58267EBCE]]></AD_TABLE_ID>
harpreet@9091
    22
<!--D30C26E6452843B4BA4F8D71A651EB80-->  <AD_KEY><![CDATA[BD426B492A504790B269B2A56374C2C5]]></AD_KEY>
harpreet@9091
    23
<!--D30C26E6452843B4BA4F8D71A651EB80-->  <AD_DISPLAY><![CDATA[01645009C7E94EFCAEF1184DFFD85A39]]></AD_DISPLAY>
harpreet@9091
    24
<!--D30C26E6452843B4BA4F8D71A651EB80-->  <ISVALUEDISPLAYED><![CDATA[N]]></ISVALUEDISPLAYED>
harpreet@9091
    25
<!--D30C26E6452843B4BA4F8D71A651EB80-->  <WHERECLAUSE><![CDATA[isoutfield='Y'
harpreet@9091
    26
AND obuisel_selector_id in (
harpreet@9091
    27
select s.obuisel_selector_id
harpreet@9091
    28
  from ad_column c, obuisel_selector s
harpreet@9091
    29
 where (c.ad_reference_id = '95E2A8B50A254B2AAE6774B8C2F28120'
gorkaion@10265
    30
        or c.ad_reference_id = '80B1630792EA46F298A3FBF81E77EF9C'
gorkaion@10265
    31
        or c.ad_reference_id = '30')
harpreet@9091
    32
   and c.ad_reference_value_id = s.ad_reference_id
harpreet@9091
    33
   and c.ad_table_id =@AD_Table_ID@)]]></WHERECLAUSE>
harpreet@9091
    34
<!--D30C26E6452843B4BA4F8D71A651EB80-->  <ORDERBYCLAUSE><![CDATA[name]]></ORDERBYCLAUSE>
harpreet@9091
    35
<!--D30C26E6452843B4BA4F8D71A651EB80--></AD_REF_TABLE>
harpreet@9091
    36
harpreet@9091
    37
</data>