Tuesday Jan 10, 2012

Sort ADF QuickQuery and Query Components Fields with UI Categories

This is a quick tip about the usage of the quickQuery and query components in ADF.
These two components dynamically create the list of fields that you can query on based on the fields in your View Object. The tricky part is that sometimes the order of the fields as they appear in the query component is not the order you want them to be in.

For example, there is usually a high-frequency field that people tend to query on - and you'll want this one to be the first in your query list.

The way to solve this is using the "UI Categories" area of the ViewObject definition - there you can define the order of the fields that will be used by default.

Here is a quick demo:


Learn about other usages of UI Categories here.

About

me
I'm a Director of Product Management for the Oracle Java Development Tools.
Follow me:
Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today