How to customize the filter component for OracleADFtable Columns

Source: Internet
Author: User
Lt; f: facetnamefiltergt; lt; af: selectOneChoicerequired # {bindings. Pay0detailVO1. hints. V

Lt; f: facet name = filtergt; lt; af: selectOneChoice required = # {bindings. Pay0detailVO1. hints. V

Normally dragged af: the query area of the filtering row of the table component is only the text input field.

:,

However, if the design requirement is to edit the new row, if some columns are in the form of search help or drop-down box, text filtering in the filtering area will not get the desired result.

:

When you filter the code column in the settlement direction, you cannot filter out the desired results by simply entering the added payment because the data in each row comes from the dictionary items in the database.

In addition, the value stored in this column is the dictionary item code, and the dictionary item name is displayed on the UI. therefore, you can only obtain the desired result by entering the data dictionary Code such as 01 02 03 during filtering.

However, you do not know the dictionary code.


Then, in the filtering area, read the database dictionary items in the drop-down box to filter the items.

The operation is as follows: Go to the pagedefine. xml page.

Add a drop-down List:


Select the second select one value list that update a base data source


Then select model driven List to find the LOV of this field.

The code generated in XML is as follows. If you are skilled, COPY the Code directly.

[Html]

  • Users is the name of the LOV used. Which table does IterBinding use for iteration?

    After the page definition file is complete, you can draw a filter drop-down box on the page. The column field has the f: facet name = "filter" attribute.

    Usage:

    [Plain]

    Here, the value is bound to the field required by vs. filterCriteria;

    Why?

    The filtering area will be selected, but the blank space will not be returned;

    So add f: selectItem and itemvalue = "" Before f: selectItems ""

    This is an example of the drop-down box for implementing the custom filter component.

    ,

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.