Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Expand
titleSearch Textbox

 

Code Block
themeEclipse
languagexml
titleSearch Textbox
<searchtextbox>
	<id>stbAccountReceivable</id>
	<label>key_accounts_receivable</label>
	<value>[[getValue,java.lang.String,accountReceivable/name]]</value>
	<visiblemodes>new,edit</visiblemodes>
	<modal>
		<id>mdlAccountReceivable</id>
		<type>quicksearch</type>
		<refresh>component,false:false:null:cmpAccountReceivable;component,false:false:null:cmpContactInformation</refresh>
		<datasetname>accounts.load</datasetname>
		<datasetreturnhiddenfield>ACCRECID</datasetreturnhiddenfield>
		<datasetsearchtable>ACCOUNTSRECEIVABLE</datasetsearchtable>
		<datasetsearchfield>ACCRECNAME;ACCRECNUM;LIFECYCLESTATE</datasetsearchfield>
		<assignments>
			<assignment>
				<classname>com.crm.dataobject.accounts.CRMDOAccountReceivable</classname>
				<datapath>accountReceivable</datapath>
				<value>accRecId</value>
				<datatype>load</datatype>
			</assignment>
		</assignments>
		<onclosefunction>
			<functions>
				<function>
					<type>ejb</type>
					<classname>ejb/CRMUIAccountReceivable</classname>
					<functionname>loadForm</functionname>
					<resultaction>fieldreplace</resultaction>
					<datapath>accountReceivable</datapath>
					<parameters>
						<parameter>
							<value>[[getValue,java.lang.String,accountReceivable/id]]</value>
							<datatype>java.lang.String</datatype>
						</parameter>
					</parameters>
				</function>
			</functions>
		</onclosefunction>
	</modal>
</searchtextbox>
Expand
titleSearch Textbox With Disable Timer

Image Removed

Code Block
themeEclipse
languagexml
titleSearch Textbox With Disable Timer
<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>