Class LookupView
- All Implemented Interfaces:
Serializable,Cloneable,Copyable,DictionaryBean,UifDictionaryBean,Component,Ordered,ScriptEventSupport,Container,LifecycleElement,Helpable,org.springframework.core.Ordered
Supports doing a search against a data object class or performing a more advanced query. The view type is primarily made up of two groups, the search (or criteria) group and the results group. Many options are supported on the view to enable/disable certain features, like what actions are available on the search results.
Works in conjunction with Lookupable which customizes the view and
carries out the business functionality
- Author:
- Kuali Rice Team (rice.collab@kuali.org)
- See Also:
-
Field Summary
Fields inherited from class org.kuali.rice.krad.uif.view.View
applyDirtyCheck, viewIndexFields inherited from class org.kuali.rice.krad.uif.component.ComponentBase
templateOptionsFields inherited from class org.kuali.rice.krad.datadictionary.DictionaryBeanBase
componentCodeFields inherited from interface org.kuali.rice.krad.uif.component.Ordered
INITIAL_ORDER_VALUEFields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidAdds the 'active' property criteria to the criteria fields if the BO is inactivatable and their is not already a lookup field for the active property.protected voidconvertLookupCriteriaFields(Group lookupGroup) Performs conversions of the lookup criteria fields within the given group's items.protected FieldGroupCreates aFieldGroupinstance to replace the given lookup input field as a date criteria range.List of secure property names that are in addition to theComponentSecurityorAttributeSecurityattributes.List of fields that will be rendered for the lookup criteria.ComponentGroupinstance to render as search criteria.Class<?> Class for the data object the lookup applies to.List of property names on the configured data object class that will be used to perform the initial sorting of the search results.String that maps to the maintenance controller for the maintenance document (if any) associated with the lookup data object class.Retrieves the maximum number of records that will be listed as a result of the multiple values select lookup search.ComponentMessageinstance to render between the range criteria fields within a range field group.Field group prototype that will be copied to create any date range field groups.List of fields that will be rendered for the result collection group, each field will be a column (assuming table layout is used).Retrieves the maximum number of records that will be listed as a result of the lookup search.ComponentCollectionGroupinstance to render for the lookup results.protected voidAdds the list of criteria and result fields to their group prototypes, then adds the criteria and result groups to the items for the view.booleanIndicates whether the 'active' criteria field must be added automatically for Inactivatable business objects.booleanIndicates whether the initial sort performed usinggetDefaultSortAttributeNames()is done based on ascending or descending order (default is true, ascending).booleanbooleanIndicates whether multiple values select should be enabled for the lookup.booleanIndicates whether the action buttons like search in the criteria group footer should be rendered, defaults to true.booleanIndicates whether the lookup criteria group should be rendered, default to true.Indicates whether links for maintenance actions (new, edit, copy, delete) should be rendered.booleanIndicates whether the actions column for the search results collection group should be rendered (default is true).Indicates whether a return value link should be rendered for each result row.voidperformApplyModel(Object model, LifecycleElement parent) Reads the convenience render flags and sets the corresponding component property, processing the criteria fields for any adjustments, and invokes the lookup authorizer to determine whether maintenance links should be shown.voidperformFinalize(Object model, LifecycleElement parent) Forces session persistence on the criteria fields so the search criteria can be validated on post.voidperformInitialization(Object model) Initializes Lookupable with data object class and sets the abstractTypeClasses map for the lookup object path.voidsetAdditionalSecurePropertyNames(List<String> additionalSecurePropertyNames) voidsetAutoAddActiveCriteria(boolean autoAddActiveCriteria) voidsetCriteriaFields(List<Component> criteriaFields) voidsetCriteriaGroup(Group criteriaGroup) voidsetDataObjectClass(Class<?> dataObjectClass) voidsetDataObjectClassName(String dataObjectClassName) Convenience setter to configure the lookup data object class by class name.voidsetDefaultSortAscending(boolean defaultSortAscending) voidsetDefaultSortAttributeNames(List<String> defaultSortAttributeNames) voidsetHideCriteriaOnSearch(boolean hideCriteriaOnSearch) voidsetMaintenanceUrlMapping(String maintenanceUrlMapping) voidsetMultipleValuesSelect(boolean multipleValuesSelect) voidsetMultipleValuesSelectResultSetLimit(Integer multipleValuesSelectResultSetLimit) voidsetRangedToMessage(Message rangedToMessage) voidsetRangeFieldGroupPrototype(FieldGroup rangeFieldGroupPrototype) voidsetRenderCriteriaActions(boolean renderCriteriaActions) voidsetRenderLookupCriteria(boolean renderLookupCriteria) voidsetRenderMaintenanceLinks(Boolean renderMaintenanceLinks) voidsetRenderResultActions(boolean renderResultActions) voidsetRenderReturnLink(Boolean renderReturnLink) voidsetResultFields(List<Component> resultFields) voidsetResultSetLimit(Integer resultSetLimit) voidsetResultsGroup(CollectionGroup resultsGroup) Methods inherited from class org.kuali.rice.krad.uif.view.FormView
getAdditionalHiddenValues, getFormPostUrl, isRenderForm, isValidateClientSide, isValidateServerSide, setAdditionalHiddenValues, setFormPostUrl, setRenderForm, setValidateClientSide, setValidateServerSideMethods inherited from class org.kuali.rice.krad.uif.view.View
addViewTemplate, afterEvaluateExpression, clearIndex, clone, completeValidation, getActionFlags, getAdditionalCssFiles, getAdditionalHeadLinks, getAdditionalMetaTags, getAdditionalScriptFiles, getApplicationFooter, getApplicationHeader, getApplicationTitleText, getAuthorizer, getBreadcrumbItem, getBreadcrumbItems, getBreadcrumbOptions, getBreadcrumbs, getBuildFooter, getComponentTypeName, getContentContainerClassesAsString, getContentContainerCssClasses, getCurrentPage, getCurrentPageId, getDefaultBindingObjectPath, getDialogs, getEditModes, getEntryPageId, getExpressionVariables, getFormClass, getGrowls, getItems, getNamespaceCode, getNavigation, getNavigationBlockUI, getObjectPathToConcreteClassMapping, getPage, getPagesForPreprocessing, getParentLocation, getPathBasedBreadcrumbs, getPreloadPoolSize, getPreLoadScript, getPreModelContext, getPresentationController, getRefreshBlockUI, getRequestAuthorizationCacheClass, getSessionPolicy, getStateMapping, getStateObjectBindingPath, getSupportedComponents, getTheme, getTopGroup, getViewHelperService, getViewHelperServiceClass, getViewIndex, getViewName, getViewRequestParameters, getViewTemplates, getViewTypeName, initializeDialogLoadScript, initializeDialogReclocationScript, isApplyDirtyCheck, isDisableBrowserCache, isDisableNativeAutocomplete, isGrowlMessagingEnabled, isMergeWithPageItems, isPersistFormToSession, isSinglePageView, isStickyApplicationFooter, isStickyApplicationHeader, isStickyBreadcrumbs, isStickyFooter, isStickyHeader, isStickyTopGroup, isSupportsRequestOverrideOfReadOnlyFields, isTranslateCodesOnReadOnlyDisplay, isUnifiedHeader, isUseLibraryCssClasses, notifyCompleted, setActionFlags, setAdditionalCssFiles, setAdditionalHeadLinks, setAdditionalMetaTags, setAdditionalScriptFiles, setApplicationFooter, setApplicationHeader, setApplicationTitleText, setApplyDirtyCheck, setAuthorizer, setAuthorizerClass, setBreadcrumbItem, setBreadcrumbOptions, setBreadcrumbs, setBuildFooter, setContentContainerCssClasses, setCurrentPageId, setDefaultBindingObjectPath, setDialogs, setDisableBrowserCache, setDisableNativeAutocomplete, setEditModes, setEntryPageId, setExpressionVariables, setFormClass, setGrowlMessagingEnabled, setGrowls, setItems, setMergeWithPageItems, setNamespaceCode, setNavigation, setNavigationBlockUI, setNestedComponentId, setObjectPathToConcreteClassMapping, setPage, setParentLocation, setPathBasedBreadcrumbs, setPersistFormToSession, setPreloadPoolSize, setPreLoadScript, setPresentationController, setPresentationControllerClass, setRefreshBlockUI, setRequestAuthorizationCacheClass, setSessionPolicy, setSinglePageView, setStateMapping, setStateObjectBindingPath, setStickyApplicationFooter, setStickyApplicationHeader, setStickyBreadcrumbs, setStickyFooter, setStickyHeader, setStickyTopGroup, setSupportsRequestOverrideOfReadOnlyFields, setTheme, setTopGroup, setTranslateCodesOnReadOnlyDisplay, setUnifiedHeader, setUseLibraryCssClasses, setViewHelperService, setViewHelperServiceClass, setViewName, setViewRequestParameters, setViewTemplates, setViewTypeName, sortItemsMethods inherited from class org.kuali.rice.krad.uif.container.ContainerBase
getAdditionalTemplates, getDefaultItemPosition, getEnterKeyAction, getFooter, getHeader, getHeaderText, getHelp, getHelpTitle, getInstructionalMessage, getInstructionalText, getLayoutManager, getValidationMessages, isProcessRemoteFieldHolders, setDefaultItemPosition, setEnterKeyAction, setFooter, setHeader, setHeaderText, setHelp, setInstructionalMessage, setInstructionalText, setLayoutManager, setRenderFooter, setRenderHeader, setTooltipOfComponent, setValidationMessagesMethods inherited from class org.kuali.rice.krad.uif.component.ComponentBase
addAriaAttribute, addDataAttribute, addScriptDataAttribute, addStyleClass, addWrapperCssClass, appendToStyle, checkMutable, getAdditionalComponentsToRefresh, getAdditionalComponentsToRefreshJs, getAdditionalCssClasses, getAlign, getAriaAttributes, getAriaAttributesAsString, getCanCopyOnReadOnly, getCellWidth, getColSpan, getComponentModifiers, getComponentSecurity, getConditionalRefresh, getConditionalRefreshConditionJs, getConditionalRefreshControlNames, getContainerIdSuffix, getContext, getCssClasses, getCssGridSizes, getDataAttributes, getEventHandlerScript, getExcludeIf, getExcludeUnless, getFieldsToSendOnRefresh, getFinalizeMethodAdditionalArguments, getFinalizeMethodInvoker, getFinalizeMethodToCall, getId, getLibraryCssClasses, getMethodToCallOnRefresh, getOnBlurScript, getOnChangeScript, getOnClickScript, getOnCloseScript, getOnDblClickScript, getOnDocumentReadyScript, getOnFocusScript, getOnInputScript, getOnKeyDownScript, getOnKeyPressScript, getOnKeyUpScript, getOnLoadScript, getOnMouseDownScript, getOnMouseMoveScript, getOnMouseOutScript, getOnMouseOverScript, getOnMouseUpScript, getOnSubmitScript, getOnUnloadScript, getOrder, getPhasePathMapping, getPostRenderContent, getPreRenderContent, getProgressiveDisclosureConditionJs, getProgressiveDisclosureControlNames, getProgressiveRender, getPropertyReplacerComponents, getPropertyReplacers, getReadOnly, getRefreshTimer, getRefreshWhenChangedPropertyNames, getRenderedHtmlOutput, getRequired, getRole, getRowSpan, getScriptDataAttributes, getScriptDataAttributesJs, getSimpleDataAttributes, getStyle, getStyleClassesAsString, getTemplate, getTemplateName, getTemplateOptions, getTemplateOptionsJSString, getTitle, getToolTip, getValign, getViewPath, getViewStatus, getWidth, getWrapperCssClasses, getWrapperCssClassesAsString, getWrapperStyle, initializeComponentSecurity, isDisableSessionPersistence, isDisclosedByAction, isEditAuthz, isFinal, isForceSessionPersistence, isHidden, isInitialized, isModelApplied, isMutable, isOmitFromFormPost, isProgressiveRenderAndRefresh, isProgressiveRenderViaAJAX, isRefreshedByAction, isRender, isRendered, isResetDataOnRefresh, isRetrieveViaAjax, isSelfRendered, isSkipInTabOrder, isViewAuthz, pushAllToContext, pushObjectToContext, pushToPropertyReplacerContext, setAdditionalComponentsToRefresh, setAdditionalCssClasses, setAlign, setAriaAttributes, setCanCopyOnReadOnly, setCellWidth, setColSpan, setComponentModifiers, setComponentSecurity, setConditionalRefresh, setContainerIdSuffix, setContext, setCssClasses, setCssGridSizes, setDataAttributes, setDisableSessionPersistence, setDisclosedByAction, setEditAuthz, setExcludeIf, setExcludeUnless, setFieldsToSendOnRefresh, setFinalizeMethodAdditionalArguments, setFinalizeMethodInvoker, setFinalizeMethodToCall, setForceSessionPersistence, setHidden, setId, setLibraryCssClasses, setMethodToCallOnRefresh, setOmitFromFormPost, setOnBlurScript, setOnChangeScript, setOnClickScript, setOnCloseScript, setOnDblClickScript, setOnDocumentReadyScript, setOnFocusScript, setOnInputScript, setOnKeyDownScript, setOnKeyPressScript, setOnKeyUpScript, setOnLoadScript, setOnMouseDownScript, setOnMouseMoveScript, setOnMouseOutScript, setOnMouseOverScript, setOnMouseUpScript, setOnSubmitScript, setOnUnloadScript, setOrder, setPhasePathMapping, setPostRenderContent, setPreRenderContent, setProgressiveRender, setProgressiveRenderAndRefresh, setProgressiveRenderViaAJAX, setPropertyReplacers, setReadOnly, setRefreshedByAction, setRefreshTimer, setRefreshWhenChangedPropertyNames, setRender, setRenderedHtmlOutput, setRequired, setResetDataOnRefresh, setRetrieveViaAjax, setRole, setRowSpan, setScriptDataAttributes, setSelfRendered, setSkipInTabOrder, setStyle, setTemplate, setTemplateName, setTemplateOptions, setTemplateOptionsJSString, setTitle, setToolTip, setValign, setViewAuthz, setViewPath, setViewStatus, setWidth, setWrapperCssClasses, setWrapperStyle, skipLifecycleMethods inherited from class org.kuali.rice.krad.datadictionary.uif.UifDictionaryBeanBase
getExpressionGraph, getPropertyExpression, getPropertyExpressions, setExpressionGraph, setPropertyExpressionsMethods inherited from class org.kuali.rice.krad.datadictionary.DictionaryBeanBase
copy, dataDictionaryPostProcessing, getComponentCode, setComponentCodeMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.kuali.rice.krad.uif.component.Component
addAriaAttribute, addDataAttribute, addScriptDataAttribute, addStyleClass, addWrapperCssClass, appendToStyle, getAdditionalComponentsToRefresh, getAdditionalComponentsToRefreshJs, getAdditionalCssClasses, getAlign, getAriaAttributes, getAriaAttributesAsString, getCanCopyOnReadOnly, getCellWidth, getColSpan, getComponentModifiers, getComponentSecurity, getConditionalRefresh, getConditionalRefreshConditionJs, getConditionalRefreshControlNames, getContext, getCssClasses, getCssGridSizes, getDataAttributes, getEventHandlerScript, getExcludeIf, getExcludeUnless, getFieldsToSendOnRefresh, getFinalizeMethodAdditionalArguments, getFinalizeMethodInvoker, getFinalizeMethodToCall, getLibraryCssClasses, getMethodToCallOnRefresh, getOrder, getPostRenderContent, getPreRenderContent, getProgressiveDisclosureConditionJs, getProgressiveDisclosureControlNames, getProgressiveRender, getPropertyReplacerComponents, getPropertyReplacers, getReadOnly, getRefreshTimer, getRefreshWhenChangedPropertyNames, getRenderedHtmlOutput, getRequired, getRole, getRowSpan, getScriptDataAttributes, getScriptDataAttributesJs, getSimpleDataAttributes, getStyle, getStyleClassesAsString, getTemplate, getTemplateName, getTemplateOptions, getTemplateOptionsJSString, getTitle, getToolTip, getValign, getWidth, getWrapperCssClasses, getWrapperStyle, isDisableSessionPersistence, isDisclosedByAction, isForceSessionPersistence, isHidden, isOmitFromFormPost, isProgressiveRenderAndRefresh, isProgressiveRenderViaAJAX, isRefreshedByAction, isRendered, isResetDataOnRefresh, isRetrieveViaAjax, isSelfRendered, setAdditionalComponentsToRefresh, setAdditionalCssClasses, setAlign, setAriaAttributes, setCanCopyOnReadOnly, setCellWidth, setColSpan, setComponentModifiers, setComponentSecurity, setConditionalRefresh, setContext, setCssClasses, setCssGridSizes, setDataAttributes, setDisableSessionPersistence, setDisclosedByAction, setFieldsToSendOnRefresh, setForceSessionPersistence, setHidden, setLibraryCssClasses, setOmitFromFormPost, setOrder, setPostRenderContent, setPreRenderContent, setProgressiveRender, setProgressiveRenderAndRefresh, setProgressiveRenderViaAJAX, setPropertyReplacers, setReadOnly, setRefreshedByAction, setRefreshTimer, setRefreshWhenChangedPropertyNames, setRenderedHtmlOutput, setRequired, setResetDataOnRefresh, setRetrieveViaAjax, setRole, setRowSpan, setScriptDataAttributes, setSelfRendered, setStyle, setTemplate, setTemplateName, setTemplateOptions, setTemplateOptionsJSString, setTitle, setToolTip, setValign, setViewStatus, setWidth, setWrapperCssClasses, setWrapperStyleMethods inherited from interface org.kuali.rice.krad.datadictionary.DictionaryBean
dataDictionaryPostProcessing, getComponentCodeMethods inherited from interface org.kuali.rice.krad.uif.util.LifecycleElement
checkMutable, getContainerIdSuffix, getId, getPhasePathMapping, getViewPath, getViewStatus, isFinal, isInitialized, isModelApplied, isMutable, isRender, pushAllToContext, pushObjectToContext, setContainerIdSuffix, setId, setPhasePathMapping, setRender, setViewPath, skipLifecycleMethods inherited from interface org.kuali.rice.krad.uif.component.ScriptEventSupport
getOnBlurScript, getOnChangeScript, getOnClickScript, getOnCloseScript, getOnDblClickScript, getOnDocumentReadyScript, getOnFocusScript, getOnInputScript, getOnKeyDownScript, getOnKeyPressScript, getOnKeyUpScript, getOnLoadScript, getOnMouseDownScript, getOnMouseMoveScript, getOnMouseOutScript, getOnMouseOverScript, getOnMouseUpScript, getOnSubmitScript, getOnUnloadScript, setOnBlurScript, setOnChangeScript, setOnClickScript, setOnCloseScript, setOnDblClickScript, setOnDocumentReadyScript, setOnFocusScript, setOnInputScript, setOnKeyDownScript, setOnKeyPressScript, setOnKeyUpScript, setOnLoadScript, setOnMouseDownScript, setOnMouseMoveScript, setOnMouseOutScript, setOnMouseOverScript, setOnMouseUpScript, setOnSubmitScript, setOnUnloadScriptMethods inherited from interface org.kuali.rice.krad.datadictionary.uif.UifDictionaryBean
getExpressionGraph, getPropertyExpression, getPropertyExpressions, setExpressionGraph, setPropertyExpressions
-
Constructor Details
-
LookupView
public LookupView()
-
-
Method Details
-
performInitialization
Initializes Lookupable with data object class and sets the abstractTypeClasses map for the lookup object path. The following initialization is performed:- If a single paged view, set items in page group and put the page in the items list
- If
ViewSessionPolicy.enableTimeoutWarningis enabled add the session timeout dialogs to the views list of dialog groups
- Sorts the containers list of components
- Initializes the instructional field if necessary
- Initializes LayoutManager
- Invoke performInitialize on component modifiers
Where components can set defaults and setup other necessary state. The initialize method should only be called once per component lifecycle and is invoked within the initialize phase of the view lifecylce.
- Specified by:
performInitializationin interfaceLifecycleElement- Overrides:
performInitializationin classView- Parameters:
model- - object instance containing the view data- See Also:
-
performApplyModel
Reads the convenience render flags and sets the corresponding component property, processing the criteria fields for any adjustments, and invokes the lookup authorizer to determine whether maintenance links should be shown. The following updates are done here:- Invoke expression evaluation on view theme
- Invoke theme to configure defaults
- Specified by:
performApplyModelin interfaceLifecycleElement- Overrides:
performApplyModelin classView- Parameters:
model- - Top level object containing the data (could be the form or a top level business object, dto)parent- parent lifecycle element
-
performFinalize
Forces session persistence on the criteria fields so the search criteria can be validated on post. The following is performed:- Adds to its document ready script the setupValidator js function for setting up the validator for this view
- Adds to its document ready script the setupValidator js function for setting up the validator for this view
- Sets the headerText of the header Group if it is blank
- Set the messageText of the summary Message if it is blank
- Finalizes LayoutManager
- progressiveRender and conditionalRefresh variables are processed if set
- If any of the style properties were given, sets the style string on the style property
- Set the skipInTabOrder flag for nested components
Here final preparations can be made based on the updated view state.
- Specified by:
performFinalizein interfaceLifecycleElement- Overrides:
performFinalizein classFormView- Parameters:
model- - top level object containing the dataparent- - parent component
-
addActiveCriteriaIfNecessary
protected void addActiveCriteriaIfNecessary()Adds the 'active' property criteria to the criteria fields if the BO is inactivatable and their is not already a lookup field for the active property. -
initializeGroups
protected void initializeGroups()Adds the list of criteria and result fields to their group prototypes, then adds the criteria and result groups to the items for the view. -
convertLookupCriteriaFields
Performs conversions of the lookup criteria fields within the given group's items.Max lengths are removed on text controls so wildcards can be added. Ranged date fields are converted to field groups with the from/to date fields
-
createDateRangeFieldGroup
Creates aFieldGroupinstance to replace the given lookup input field as a date criteria range.The field group is created by copying
rangeFieldGroupPrototype. This can be used to configure how the field group will appear. In addition, the two lookup fields are separated with a message that can be configured withrangedToMessage- Parameters:
toDate- lookup input field that field group should be build for- Returns:
- field group that contains a from and to lookup input field for searching a date range
- See Also:
-
getDataObjectClass
Class for the data object the lookup applies to.The object class name is used to pick up a dictionary entry which will feed the attribute field definitions and other configuration. In addition it is to configure the
Lookupablewhich will carry out the search action- Returns:
- lookup data object class
-
setDataObjectClass
- See Also:
-
setDataObjectClassName
Convenience setter to configure the lookup data object class by class name.- Parameters:
dataObjectClassName- full class name for the lookup data object
-
isRenderReturnLink
Indicates whether a return value link should be rendered for each result row.When the lookup is called from a view (using a
QuickFinderthe return link can be returned to allow the user to return a value(s) for a selected row. Note, if this is not manually set the framework will determine when the lookup is called from a quickfinder and turn this flag on- Returns:
- boolean true if the return link should be rendered for each result row, false if not
-
setRenderReturnLink
- See Also:
-
isRenderResultActions
public boolean isRenderResultActions()Indicates whether the actions column for the search results collection group should be rendered (default is true).Note this is a convenience property for setting the render property on the result collection group
- Returns:
- boolean true if the result actions column should be rendered, false if not
-
setRenderResultActions
public void setRenderResultActions(boolean renderResultActions) - See Also:
-
isRenderMaintenanceLinks
Indicates whether links for maintenance actions (new, edit, copy, delete) should be rendered.When this property is not manually set it will be enabled by the framework when a lookup is not invoked from a quickfinder (for example a standard link from a menu). Regardless if the flag is manually enabled or enabled by the framework, an additional authorization check will be performed to determine if the user has initiate permission for the maintenance document associated with the lookup data object class. If not, this flag will be disabled
- Returns:
- boolean true if maintenance links should be rendered, false if not
-
setRenderMaintenanceLinks
- See Also:
-
isMultipleValuesSelect
public boolean isMultipleValuesSelect()Indicates whether multiple values select should be enabled for the lookup.When set to true, the select field is enabled for the lookup results group that allows the user to select one or more rows for returning. The framework will also set the
isRenderReturnLink()andisRenderMaintenanceLinks()properties to false (unless manually overridden)- Returns:
- true if multiple values select should be enabled, false otherwise
-
setMultipleValuesSelect
public void setMultipleValuesSelect(boolean multipleValuesSelect) - See Also:
-
getCriteriaFields
List of fields that will be rendered for the lookup criteria.This is a convenience property for setting the items in
getCriteriaGroup(), which is the group the criteria for the lookup is rendered in. This property can be bypassed and the items set directly in the criteria group (for more flexibility)- Returns:
- List of components to render as the lookup criteria
-
setCriteriaFields
- See Also:
-
getCriteriaGroup
ComponentGroupinstance to render as search criteria.Fields that make up the criteria for the lookup will be rendered in this group. This can be used in a few different ways:
- Set the group to have the desired layout, style, and other general group properties. Note this
is done in the base lookup view. The actual criteria fields can then be configured using
getCriteriaFields() - Configure the criteria group entirely (ignoring criteria fields). This would allow you to do things like have multiple groups for the criteria.
Note the footer for the criteria group can contain actions (such as search, clear, custom actions)
- Returns:
- group instance that will hold the search criteria fields
- Set the group to have the desired layout, style, and other general group properties. Note this
is done in the base lookup view. The actual criteria fields can then be configured using
-
setCriteriaGroup
- See Also:
-
isHideCriteriaOnSearch
public boolean isHideCriteriaOnSearch() -
setHideCriteriaOnSearch
public void setHideCriteriaOnSearch(boolean hideCriteriaOnSearch) -
getResultFields
List of fields that will be rendered for the result collection group, each field will be a column (assuming table layout is used).This is a convenience property for setting the items in
getResultsGroup(), which is the collection group the results for the lookup is rendered in. This property can be bypassed and the items set directly in the results group (for more flexibility)- Returns:
- List of components to render in the results group
-
setResultFields
- See Also:
-
getResultsGroup
ComponentCollectionGroupinstance to render for the lookup results.After a search is performed, the resulting data objects will be rendered in this collection group. This collection group can be used in two ways:
- Set the desired layout, style, and other general collection group properties. Note this is done
in the base lookup view. Then the actual fields that are rendered in the collection group can be
configured using
getResultFields() - Configure the results group entirely (ignoring result fields)
Note actions that are presented for the results can be configured using the
CollectionGroup.getLineActions()property- Returns:
- collection group instance to render for the lookup results
- Set the desired layout, style, and other general collection group properties. Note this is done
in the base lookup view. Then the actual fields that are rendered in the collection group can be
configured using
-
setResultsGroup
- See Also:
-
getDefaultSortAttributeNames
List of property names on the configured data object class that will be used to perform the initial sorting of the search results.- Returns:
- list of property names valid for the configured data object class
- See Also:
-
setDefaultSortAttributeNames
- See Also:
-
isDefaultSortAscending
public boolean isDefaultSortAscending()Indicates whether the initial sort performed usinggetDefaultSortAttributeNames()is done based on ascending or descending order (default is true, ascending).- Returns:
- boolean true if ascending sort should be performed, false if descending sort should be performed
-
setDefaultSortAscending
public void setDefaultSortAscending(boolean defaultSortAscending) - See Also:
-
getResultSetLimit
Retrieves the maximum number of records that will be listed as a result of the lookup search.- Returns:
- Integer result set limit
-
setResultSetLimit
- See Also:
-
getMultipleValuesSelectResultSetLimit
Retrieves the maximum number of records that will be listed as a result of the multiple values select lookup search.- Returns:
- multiple values select result set limit
-
setMultipleValuesSelectResultSetLimit
- See Also:
-
getMaintenanceUrlMapping
String that maps to the maintenance controller for the maintenance document (if any) associated with the lookup data object class.Mapping will be used to build the maintenance action links (such as edit, copy, and new). If not given, the default maintenance mapping will be used
- Returns:
- mapping string
-
setMaintenanceUrlMapping
- See Also:
-
isRenderCriteriaActions
public boolean isRenderCriteriaActions()Indicates whether the action buttons like search in the criteria group footer should be rendered, defaults to true.- Returns:
- boolean true if the criteria actions should be rendered, false if not
-
setRenderCriteriaActions
public void setRenderCriteriaActions(boolean renderCriteriaActions) - See Also:
-
isRenderLookupCriteria
public boolean isRenderLookupCriteria()Indicates whether the lookup criteria group should be rendered, default to true.Hiding the criteria group can be useful in cases where the criteria is passed in through the request and also the search is executed on the initial request
- Returns:
- boolean true if criteria group should be rendered, false if not
-
setRenderLookupCriteria
public void setRenderLookupCriteria(boolean renderLookupCriteria) - See Also:
-
getRangeFieldGroupPrototype
Field group prototype that will be copied to create any date range field groups.- Returns:
- field group instance to use for creating range field groups
-
setRangeFieldGroupPrototype
- See Also:
-
getRangedToMessage
ComponentMessageinstance to render between the range criteria fields within a range field group.- Returns:
- message instance for range field group
-
setRangedToMessage
- See Also:
-
isAutoAddActiveCriteria
public boolean isAutoAddActiveCriteria()Indicates whether the 'active' criteria field must be added automatically for Inactivatable business objects.- Returns:
- boolean true if active criteria should be added
-
setAutoAddActiveCriteria
public void setAutoAddActiveCriteria(boolean autoAddActiveCriteria) - See Also:
-
getAdditionalSecurePropertyNames
List of secure property names that are in addition to theComponentSecurityorAttributeSecurityattributes.- Returns:
- list of secure property names
-
setAdditionalSecurePropertyNames
- See Also:
-