Description
This element is used to display a text box used for search on the page.
Attributes
Name | Description | Value |
---|---|---|
id | Unique Identifier | Any |
name | A name that describes the search textbox. | Any |
visiblemodes | The modes the search textbox should be visible. | A comma-separated list of the modes read / new / edit |
visibilityconditions | The conditions that should be met in order to display the search textbox. | '[[pagefunction, datatype, datapath ]]' operator(==,!=) 'value' |
readonly | If is true then search textbox cannot change value. | true,false |
readonlyconditions | The conditions that should be met in order to display the text box in read only mode. | '[[pagefunction, datatype, datapath ]]' |
datapath | The data path field name | Needs to correspond to the CRMDO object field. |
datatype | The type of datapath field | alias,java.lang.Integer, java.lang.String,... |
refresh | The page parts that should be refreshed when the search textbox change. | page mainmenu main details tab,tabID component,is_on_tab:is_on_menu:tabID:componentID element,is_on_tab:is_on_menu:tabid:componentID:elementID section,sectionID area,areaID |
value | The value to show | '[[pagefunction, datatype, datapath ]]' |
disabletimer | If its true then quick search starts when the user press 'enter' | true, false |
modalref | If no modal is specify in Search Textbox then modalref is mandatory | modal name, component id example: <modalref>AccountQuickSearch,false:false:null:toAccount</modalref> |
modal | the modal to start searching | as specify in modal |
dataformatting | Specific formatting of data | MINIMUMDIGITS:6 |
url | if url is specify the text in read mode is a link | Any |
Examples
Search Textbox
Search Textbox
<searchtextbox> <id>slbWriteOffAccount</id> <value>[[getValue,java.lang.String,writeOffAccount/name]]</value> <modal> <id>mdlWriteOffAccount</id> <type>quicksearch</type> <refresh>page</refresh> <datasetname>accounts.loadsystemaccounts</datasetname> <datasetreturnhiddenfield>ACCRECID</datasetreturnhiddenfield> <datasetsearchtable>ACCOUNTSRECEIVABLE</datasetsearchtable> <datasetsearchfield>ACCRECNUM;ACCRECNAME</datasetsearchfield> <assignments> <assignment> <classname>com.crm.dataobject.accounts.CRMDOAccountReceivable</classname> <datapath>writeOffAccount</datapath> <value>id</value> <datatype>load</datatype> </assignment> </assignments> </modal> </searchtextbox>
Search Textbox with disable timer
Search 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>