Skip to end of banner
Go to start of banner

Fields

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 29 Next »

Fields

This tag is used to define a field on the page. A field can be a filter, a summary field, or both.

Attributes

NameDescriptionValues
fieldfunctionThe value that the field will take.Valid SQL field or statement
fieldnameThe value that the field will take if there is no fieldfunction tag / the name of the variable that will hold the field's value.Valid SQL field / Any
captionThe name that will appear on the label next to the filter box if it's a filter field and/or on the top of the column if it's a summary field.Any
filterDefines if the field is a filter field or nottrue or false
summaryDefines if the field is a summary field or not.true or false
filteravailableDefines if the field is available to be added/removed from the filters in the preferences section.true or false
availableDefines if the summary field is available to be added/removed from the summary fields in the preferences section.true or false
filterlookupnameDefines the search file that will be used to search for available values for the field.[[dataset;search_page;search_field;display_field]]
mouseoverDefines if the field will appear when you hover the mouse over the field that links to the data entry page.true or false
expandDefines if the field will appear when the expand button is clicked.true or false
fieldtypeDefines the data type of the field.integer, string, date,  label, float, datetime, sharednote
filtercaseinsensitiveDefines if the field is case insensitive or not.true or false
filtertextoptionDefines if the filter field must begin with a value, end with a value, be equal to value, between two values, like a value, contain a value, show a checkbox and filter with value 1 when is checked or show a checkbox and filter by 0=unchecked, 1=checkedbeginwith, endwith, equal, range, ge, le, like, contains, checkbox, checkboxonoff
linkTurns the field into a link. If it has no prefix it opens in the current browser window. If it has the newwindow prefix it opens in a new window. If it has the drilldown prefix it opens a drilldown xml under the selected row. If it has the drilldownwithparentparams it passes all the filters of the parent xml to the drilldown.[[prefix:path;*****]]
fixedlookupUsed to retrieve the value options for the field and put them in a drop down list.'[[class.method]]' : '(All,N/A)' *****
filterconditionFilters the results of the filter.Valid SQL statement
filteronexpandDefines if the filter field will appear when the expand button is clicked.true or false
dateonlyDefines if the field will be of date type only and ignore the time.true or false
labelThe name that will appear on the field's link.Any
formattingThe field formatting setting.

For fieldtype double - the number of digits

For fieldtype string - "glossary" to translate the field's value

For fieldtype date - "persian" to convert to Persian date (Jalali), "msec" to convert the date to milliseconds

Examples

 fieldfunction
fieldfunction
<field>
	<fieldname>PRICEPLAN_FILTER</fieldname>
	<fieldfunction>PRODUCTS.PRODID</fieldfunction>
	<caption>Price Plan</caption>
	<filter>true</filter>
	<filteravailable>true</filteravailable>
	<fieldtype>string</fieldtype>
	<filtercaseinsensitive>false</filtercaseinsensitive>
	<filtercondition>
		PRODUCTS.PRODID IN (
					SELECT PRICEPLANRATES.PRICEPLANRATEPRODID
					FROM  PRICEPLANRATES
					WHERE PRICEPLANRATES.PRICEPLANID IN ('#1') 
					AND PRICEPLANRATES.PRICEPLANRATEDELETED = 0 
		)
	</filtercondition>
	<filteronexpand>true</filteronexpand>			
	<filterlookupname>dataset;priceplan.load;priceplanid;priceplanname</filterlookupname>
</field>
 fieldname
fieldname
<field>
	<fieldname>CONTACTINFORMATION.CIIDNUM</fieldname>
	<caption>ID No.</caption>
	<summary>true</summary>
	<filter>true</filter>
</field>
 caption
caption
<field>
	<fieldname>WAREHOUSE.WRHDESC</fieldname>
	<caption>Description</caption>
	<summary>true</summary>
	<filter>true</filter>
</field>
 filter
filter
<field>
	<fieldname>CREATEDBY_FILTER</fieldname>
	<fieldfunction>CREATEDBY.USERID</fieldfunction>
	<caption>Created By</caption>
	<filter>true</filter>
	<filteronexpand>true</filteronexpand>
	<filterlookupname>dataset;users.load;userid;username</filterlookupname>
</field>
 summary
summary
<field>
	<fieldname>REPLACEDPRICEPLANNAME</fieldname>
	<fieldfunction>REPLACEDPRICEPLANS.PRICEPLANNAME</fieldfunction>
	<caption>Replaced Price Plan</caption>
	<summary>true</summary>
</field>
 filteravailable
filteravailable
<field>
	<fieldname>CONTACTINFORMATION.CIPASSPORTNUM</fieldname>
	<caption>Passport No.</caption>			
	<available>true</available>
	<filteravailable>true</filteravailable>
	<filteronexpand>true</filteronexpand>
</field>
 available
available
<field>
	<fieldname>CONTACTINFORMATION.PRIVACYLEVELID</fieldname>
	<caption>Privacy Level</caption>			
	<available>true</available>
	<filteravailable>true</filteravailable>
	<filteronexpand>true</filteronexpand>
</field>
 filterlookupname
filterlookupname
<field>			
	<fieldname>NEXTBILLRUNID</fieldname>
	<fieldfunction>NEXTNORMALBILLINGRUN.BILLRUNID</fieldfunction>
	<caption>Next Billing Run</caption>
	<filter>true</filter>
	<filterlookupname>dataset;billing.loadnormalbillingruns;billrunid;billrunnum</filterlookupname>
</field>
 mouseover
mouseover
<field>
	<fieldname>FINTRANSACTIONS.FINTRXNNUM</fieldname>
	<caption>No.</caption>
	<summary>true</summary>
	<mouseover>true</mouseover>
	<filter>true</filter>
	<filteravailable>true</filteravailable>
	<fieldtype>string</fieldtype>
	<filtertextoption>beginwith</filtertextoption>
	<filtersearchonchange>true</filtersearchonchange>
</field>
 expand
expand
<field>
	<fieldname>SUBSCRIPTIONS.SUBNUM</fieldname>
	<caption>Subscription</caption>
	<expand>true</expand>
</field>
 fieldtype
fieldtype
<field>
	<fieldname>PRODUCTS.PRODDATECREATED</fieldname>
	<caption>Date Created</caption>
	<expand>true</expand>
	<filter>true</filter>
	<fieldtype>date</fieldtype>
	<filtertextoption>range</filtertextoption>
	<filteronexpand>true</filteronexpand>
</field>
 filtercaseinsensitive
filtercaseinsensitive
<field>
	<fieldname>NAME</fieldname>
	<fieldfunction> 
	CASE 
		WHEN CONTACTINFORMATION.CIISCOMPANY = 1 
		THEN CONTACTINFORMATION.CICOMPANYNAME
	 	WHEN CONTACTINFODEFINITIONS.CIDEFNAMEGENRULE = 1 
		THEN CONTACTINFORMATION.CIFIRSTNAME || ' ' || CONTACTINFORMATION.CILASTNAME 
	 	WHEN CONTACTINFODEFINITIONS.CIDEFNAMEGENRULE = 2 
		THEN CONTACTINFORMATION.CILASTNAME|| ' ' || CONTACTINFORMATION.CIFIRSTNAME 
	 	WHEN CONTACTINFODEFINITIONS.CIDEFNAMEGENRULE = 3 
		THEN CONTACTINFORMATION.CIFIRSTNAME || ' ' || 
			COALESCE (CONTACTINFORMATION.CIMIDDLENAME || ' ','') || '' || CONTACTINFORMATION.CILASTNAME 
	 	WHEN CONTACTINFODEFINITIONS.CIDEFNAMEGENRULE = 4 
		THEN CONTACTINFORMATION.CILASTNAME|| ' ' || 
			COALESCE (CONTACTINFORMATION.CIMIDDLENAME || ' ','') || '' || CONTACTINFORMATION.CIFIRSTNAME 
	END
	</fieldfunction>
	<caption>Name</caption>
	<summary>true</summary>
	<mouseover>true</mouseover>
	<filter>true</filter>
	<filteravailable>true</filteravailable>
	<filtercaseinsensitive>true</filtercaseinsensitive>
	<filtertextoption>contains</filtertextoption>
	<link>page.do?xml=contactinfo/contactInformation&amp;act=itm&amp;bh=bind&amp;fc=loadForm&amp;jndi=ejb/CRMUIContactInformation&amp;pv0=((CONTACTINFORMATION.CIID))&amp;pvc=1</link>
</field>
 filtertextoption
filtertextoption
<field>
	<fieldname>ACCOUNTSRECEIVABLE.ACCRECID</fieldname>
	<filtertextoption>equal</filtertextoption>
</field>
 link
link
<field>
	<fieldname>SUBSCRIPTIONS.SUBNUM</fieldname>
	<caption>No.</caption>
	<summary>true</summary>
	<mouseover>true</mouseover>
	<expand>false</expand>
	<filter>true</filter>
	<fieldtype>string</fieldtype>
	<filtercaseinsensitive>false</filtercaseinsensitive>
	<filtertextoption>equals</filtertextoption>
	<link>page.do?xml=subscriptions/subscription&amp;act=itm&amp;jndi=ejb/CRMUISubscription&amp;fc=loadForm&amp;pv0=((SUBSCRIPTIONS.SUBID))&amp;pvc=1</link>
</field>
 fixedlookup
fixedlookup
<field>
	<fieldname>LIFECYCLESTATE_FILTER</fieldname>
	<fieldfunction>REWARDOFFERS.LIFECYCLESTATE</fieldfunction>
	<caption>Life Cycle State</caption>
	<filter>true</filter>
	<fixedlookup>ejb/CRMUIRewardOffer.getLifeCycleStateOptions:All</fixedlookup>
</field>
 filtercondition
filtercondition
<field>
	<fieldname>COMMUNITY</fieldname>
	<fieldfunction>''</fieldfunction>
	<caption>Community</caption>
	<filter>true</filter>
	<filteravailable>true</filteravailable>
	<filtercaseinsensitive>true</filtercaseinsensitive>
	<filtercondition>
		OUUNITS.OUGID IN 
			(SELECT OUUNITS.OUUID 
				FROM OUGROUPS 
				INNER JOIN OUCOMMUNITIES OUC ON OUC.OUCID = OUGROUPS.OUCID 
					AND OUC.OUCDELETED = 0
					AND OUC.OUCID IN ('#1')
				WHERE OUUNITS.OUUDELETED = 0)
	</filtercondition>
	<filterlookupname>dataset;networkmanagement.loadcommunities;oucid;oucname:oucnum:oucdesc</filterlookupname>
</field>
 filteronexpand
filteronexpand
<field>
	<fieldname>JOBS.JOBDESC</fieldname>
	<caption>Description</caption>
	<summary>true</summary>
	<expand>false</expand>
	<available>true</available>
	<filter>true</filter>
	<filteronexpand>true</filteronexpand>
</field>
 dateonly
dateonly
<field>
	<fieldname>CURRENTBILLINGTERMS.BTAGREEMENTDATE</fieldname>
	<caption>Agreement date</caption>
	<summary>false</summary>
	<available>true</available>
	<filter>true</filter>
	<filteravailable>true</filteravailable>
	<fieldtype>date</fieldtype>
	<filtertextoption>range</filtertextoption>
	<filteronexpand>true</filteronexpand>
	<dateonly>true</dateonly>
</field>
 label
label
<field>
	<fieldname>ADDRESSES</fieldname>
	<fieldfunction>''</fieldfunction>
	<caption>Addresses</caption>
	<summary>true</summary>
	<fieldtype>label</fieldtype>
	<label>Addresses</label>
	<link>drilldown:contactinfo/contactInfoActiveAddresses;hidefilters~true~CONTACTINFOADDRESSES.CIID~((CONTACTINFORMATION.CIID))</link>
</field>
 formatting
formatting
<field>
	<fieldname>BUYINADVANCEREQUESTS.BUYINADVREQDURATION</fieldname>
	<caption>Duration</caption>
	<summary>true</summary>
	<formatting>0</formatting>
</field>
  • No labels