Versions Compared

Key

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

...

Panel
id0

Report Criterion

This tag is used to define a report criterion.

Attributes

NameDescriptionValues
criteriatype (deprecated from R16.2)The type of the criterion
type
.0
.
,1
.
,2,single
labelThe
criterion label
label that will be displayed on the specific criteria input.Any
extralabelThe criterion extra label.Anytooltip (deprecated from R16.2)The criterion tool tip.Anyhibernatefield (deprecated)The criterion hibernate field.Any
entitytablenameThe
criterion entity
table name of the entity.Any
entityfieldnameThe
criterion entity field name.Anydisplaytable (deprecated)The criterion display table.Anydisplaylabel (deprecated)The criterion display label.Anydisplayfield (deprecated)The criterion display field
field name of the entity.Any
fieldtypeThe criterion field type. Specified only if componentType is inputTextFTXSTRING. FTXINTEGER, FTXFLOAT
fieldsize (deprecated)sourcealias (deprecated)The criterion source alias.Anydisplayalias (deprecated)The criterion display alias.Anydatasetname (deprecated)The criterion dataset name.Anylookupname (deprecated)The criterion lookup name.Anytreename (deprecated)The criterion tree name.Anymultiselect (deprecated)Defines if the criterion can be multi selected.0 = No, 1 = Yes
The criterion field size.Any
isMandatoryDefines if the criterion
can
is mandatory.0 = No, 1 = Yes
componentTypeDefines
the ui
the UI component typeinputText, calendar, selectcheckboxmenu , autocomplete, select
classNameDefines the Java class of the
filter object
enityAny
managedbeannameDefines the managed bean that handles the execution of the "method" or "onChangeMethod"Any
methodDefines the method that is executed when searching for a specific valueAny
displayvalueDefines the
filter object
value that will
show in ui
be displayed on the select boxAny
disableSelectOneMenuEmptyOption
Defines if you want to disable
Disables the empty option for
a
the select box 0 = No, 1 = Yes
onChangeMethodNameDefines the Java method that will
execute
be executed on change of the criterion
in ui
valueAny


Examples 

Expand
titleCriterion with componentType inputText


Code Block
languagexml
themeEclipse
titleCriterion
<criterion>
	<label>key_rewards_participant_age_range</label>
	<extralabel>key_rewards_participant_age_range</extralabel>
	<entitytablename>EXTRACT(YEAR FROM CURRENT_DATE) - COALESCE(CONTACTINFORMATION</entitytablename>
	<entityfieldname>CIYEAROFBIRTH,EXTRACT(YEAR FROM CURRENT_DATE))</entityfieldname>
	<fieldtype>ftXInteger</fieldtype>
	<componentType>inputText</componentType>
	<multiselect>0</multiselect>
	<isMandatory>0</isMandatory>
</criterion> 


...

Expand
titleCriterion with componentType inputTextselectcheckboxmenu


Code Block
languagexml
themeEclipse
titleCriterion
<criterion>
	<label>key_rewards_participant_age_range<gender</label>
	<extralabel>key_rewards_participant_age_range<gender</extralabel>
	<entitytablename>EXTRACT(YEAR FROM CURRENT_DATE) - COALESCE(CONTACTINFORMATION<<entitytablename>CONTACTINFORMATION</entitytablename>
	<entityfieldname>CIYEAROFBIRTH,EXTRACT(YEAR FROM CURRENT_DATE))</entityfieldname>
	<fieldtype>ftXInteger</fieldtype>
	<componentType>inputText</componentType>
	<multiselect>0</multiselect>
	<isMandatory>0</isMandatory><entityfieldname>CIGENDER</entityfieldname>
	<isMandatory>0</isMandatory>
	<managedbeanname>subscriptionChangeAccountView</managedbeanname>
	<method>getGenderOptions</method>	
	<componentType>selectcheckboxmenu</componentType>
	<className>com.crm.dataobject.contactinfo.Gender</className>				
</criterion> 



Expand
titleCriterion with componentType inputTextautocomplete


Code Block
languagexml
themeEclipse
titleCriterion
<criterion>
	<label>key_rewardssign_participantup_age_range<unit</label>
	<extralabel>key_rewardssign_participantup_age_range<unit</extralabel>
	<entitytablename>EXTRACT(YEAR FROM CURRENT_DATE) - COALESCE(CONTACTINFORMATION<<entitytablename>OUUNITS</entitytablename>
	<entityfieldname>CIYEAROFBIRTH,EXTRACT(YEAR FROM CURRENT_DATE))<<entityfieldname>OUUID</entityfieldname>
	<fieldtype>ftXInteger<<componentType>autocomplete</fieldtype>componentType>
	<componentType>inputText<<managedbeanname>genericReportView</componentType>managedbeanname>
	<multiselect>0<<method>searchUnits</multiselect>method>
	<isMandatory>0</isMandatory>
</criterion> 
	<className>com.crm.dataobject.networkmanagement.CRMDOUnit</className>	
</criterion>


Methods

CRM.COM Software includes the following methods for making criteria. All methods can be found in 
/crm-ui/src/main/java/com/crm/beans/reports/GenericReportView.java
 class

Methods

searchAccountClassifications(String)
searchAccountingPeriods(String)
searchAccountReceivables(String)
searchAdditiveDiscountDefinitions(String)
searchContactInfoCategories(String)
searchContactInformation(String)
searchCountries(String)
searchFinancialTransactionTypes(String)
searchIndustries(String)
searchIndustrySectors(String)
searchLeadStatuses(String)
searchLeadTypes(String)
searchMethod(String)
searchProductBrands(String)
searchProductCategories(String)
searchProductFamilies(String)
searchProducts(String)
searchProductTypes(String)
searchServiceRequestCategories(String)
searchServiceRequestFinalResCategories(String)
searchServiceRequestResponseCategories(String)
searchServiceRequestStatuses(String)
searchServiceRequestTempResCategories(String)
searchServiceRequestTypes(String)
searchSubscriptionType(String)
searchVoucherTypes(String)
getReportNetflixChargeStatuses()
getReportNetflixChargeStatuses(String)
getReportOperatorAcknowledgementStatuses()
getReportOperatorAcknowledgementStatuses(String)
getReportProvisioningRequestTypeCodes()
getReportProvisioningRequestTypeCodes(String)
getServiceRequestImpactLevelOptions()
getServiceRequestLifeCycleStateOptions()
getServiceRequestPriorityLevelOptions()
getServiceRequestUrgencyLevelOptions()
getKYCProfileOptions()
getKYCProfileVerificationStateOptions()
getLeadImportanceLevelOptions()
getLeadLifeCycleStateOptions()
getLeadPriorityLevelOptions()
getMandatoryFields()
getNetflixMonthOptions()
getPaymentPreferenceTypeOptions()
getPhoneTypeOptions()
getPresentmentPreferenceTypeOptions()
getEmailTypeOptions()
getFinancialTransactionClassificationOptions()
getGenderOptions()
getConsentStateOptions()
getContactInformationLifeCycleStateOptions()
getContactInformationTypeOptions()
getCreditLimitStatusOptions()
getCreditRatingOptions()
getAccountLifeCycleStateOptions()
getAdditiveDiscountClassificationOptions()
getAdditiveDiscountTypeOptions()
getAddressTypeOptions()
getActiveInactiveOptions()
getBillingTermSchemeCodeOptions()
getBillingTermSchemeCodeOptions(BillType)
getBillingTermSchemeOptions()
getCountryOptions()
getCurrencyOptions()
getDaysOfMonthOptions()
getHourOptions()
getJobTypeOptions()
getLanguageOptions()
getMinuteOptions()
getMonthOptions()
getNormalBillingTermSchemeCodeOptions()
getSubscriptionTypeOptions()
getUnitOfTimeOptions()
getWeekdayOptions()
getYearOptions()
loadMonthNumberOptions()
loadYearOptions()
searchCommunities(String)
searchGroups(String)
searchUnitGroups(String)
searchUnits(String)
searchUsers(String)

For creating your own methods you can make a class that will extends GenericReportView.java and make your own implementation