Versions Compared

Key

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


...

Panel
id0

Search Textbox

This element is used to display a text box used for search on the page.

Attributes

NameDescriptionValue
id

Unique Identifier.

Any
name
A name that describes the
The search textbox name.Any
visiblemodesThe modes the search textbox should be visible.A comma-separated list of the modes (read
/
, new
/
, edit)
visibilityconditionsThe conditions that should be met in order to display the search textbox.'[[pagefunction, datatype, datapath ]]' operator(==,!=) 'value'
readonlyIf is true
then 
then the search textbox value cannot
change value
be changed.true
,
or false
readonlyconditions

The conditions that should be met in order to display

the

text box

search textbox in read only mode.

'[[pagefunction, datatype, datapath ]]'
datapathThe data path field name.Needs to correspond to the CRMDO object field
.
datatypeThe type of datapath field.alias, java.lang.Integer, java.lang.String, ...
refreshThe parts of the page
parts
that should be refreshed when the search textbox
change
is changed.

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

valueThe value
to show
of the search textbox.'[[pagefunction, datatype, datapath ]]'
disabletimerIf its true then quick search starts when the user
press
presses 'enter'.true
,
or false
modalrefIf no modal is
specify in Search Textbox
specified in the search textbox then modalref is mandatory.

modal name, component id

example: <modalref>AccountQuickSearch,false:false:null:

toAccount<

toAccount</modalref>

modal
the
The modal to start searching for.
as specify
As specified in modal
dataformattingSpecific formatting of data
MINIMUMDIGITS:6
To define the minimum number of digits for the quick search:
SEARCHSTARTMSEC:500 
To define the time in milliseconds between the last key pressed
and the start of the quick search. A value between 500 and 10000 is allowed.
  This value is available also in MPSETTINGS to overwrite the default of 2000 msec.urlif url is specify
.

Define the minimum digits for the quick search: MINIMUMDIGITS: 6

Define the time in milliseconds between the last key pressed and the start of the quick search. A value between 500 and 10000 is allowed.

urlIf the URL is specified the text in read mode is a link.Any
searchoperatorSpecifies the search type

 

...

Supported values:  

contains

begins

ends

isautocompleteIf set to true then the textbox then previous values will be shown. By default is set to truetrue,false

Examples

...

Expand

...

titleSearch Textbox

Image Removed

 

code
Image Added


Code Block
languagexml
themeEclipse
titleSearch Textbox
linenumberstrue
<searchtextbox>
<id>slbWriteOffAccount<
	<id>stbAccountReceivable</id>
	<label>key_accounts_receivable</label>
	<value>[[getValue,java.lang.String,
writeOffAccount
accountReceivable/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>
	<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>writeOffAccount</datapath> <value>id</value> <datatype>load</datatype> </assignment> </assignments> </modal> </searchtextbox>

 

 

Search Textbox with disable timer

Image Removed

 

Code Block
titleSearch Textbox with disable timer
linenumberstrue
<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>
				<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,
searchByOption]]</value> <datatype>java.lang.String</datatype> </parameter> <parameter> <value>[[getAlias,java.lang.String,modal
accountReceivable/id]]</value>
							<datatype>java.lang.String</datatype>
</parameter> </parameters> </function> </functions> </onclosefunction>
						</parameter>
					</parameters>
				</function>
			</functions>
		</onclosefunction>
	</modal>
</searchtextbox>

 

...