<searchtextbox>
<id>stbFirstName</id>
<datapath>searchBy</datapath>
<datatype>alias</datatype>
<visibilityconditions>'[[getValue,java.lang.String,searchByOption]]'=='FIRST_NAME'</visibilityconditions>
<disabletimer>true</disabletimer>
<modal>
<id>mdlFirstName</id>
<type>quicksearch</type>
<refresh>page</refresh>
<datasetname>contactinfo.load</datasetname>
<datasetreturnhiddenfield>CIID</datasetreturnhiddenfield>
<datasetsearchtable>CONTACTINFORMATION</datasetsearchtable>
<datasetsearchfield>CIFIRSTNAME;NAME;CIIDNUM;CISOCIALSECNUM;LIFECYCLESTATE</datasetsearchfield>
<filter> (
UPPER(CONTACTINFORMATION.CIFIRSTNAME) [[getValue,java.lang.String,searchByOperator]]
UPPER(concat('[[getAlias,java.lang.String,searchBy]]',
CASE
WHEN '[[getValue,java.lang.String,searchByOperator]]' = 'LIKE'
THEN '%'
ELSE ''
END)))
</filter>
<assignments>
<assignment>
<datapath>modal</datapath>
<datatype>alias</datatype>
</assignment>
</assignments>
<onclosefunction>
<functions>
<function>
<type>ejb</type>
<classname>ejb/CRMUICommunicationCentre</classname>
<functionname>readFromSearchBy</functionname>
<resultaction>replace</resultaction>
<datatype>root</datatype>
<parameters>
<parameter>
<value>[[getDTO]]</value>
<datatype>java.lang.Object</datatype>
</parameter>
<parameter>
<value>[[getValue,java.lang.String,searchByOption]]</value>
<datatype>java.lang.String</datatype>
</parameter>
<parameter>
<value>[[getAlias,java.lang.String,modal]]</value>
<datatype>java.lang.String</datatype>
</parameter>
</parameters>
</function>
</functions>
</onclosefunction>
</modal>
</searchtextbox> |