1. Add a transient attribute into the view Object.
3. Define a new view criteria and add the transient attribute DepartmentName and the corresponding Query attribute into the ViewCriteria.
4. Hide the DepartmentId in the query panel. Now when you search for employees using the deparmentName, search query is built using the Id attribute. (This would help the query performance by picking up index defined on the ID attribute if any.)
5. Search by Department Name.
You can download the complete example here.
This is not good
ReplyDeleteread this
http://docs.oracle.com/cd/E21043_01/bi.1111/e10541/adf_labels_tips.htm
Updated the blog for clarity, thanks for the feedback.
ReplyDeleteThe case here for example: searching with DeparatmentName. Once "Human Resources" is selected in the ListOfValues, the blog entry shows how to use the corresponding ID to create the where clause.