Friday 1 April 2011

How to access an Entity Attribute Level Custom Property in UI Pages?

In ADF there are many ways available for accessing the Custom property in the UI Pages. One of the way to access the Custom Property directly to the UI Pages is using the Expression.

You have to Create a Custom Property in EO attribute level by using Edit Selected Attribute Option.



Then create a Page in View Layer and drag-drop the Employee View from the DataControl. Now You can access the custom property by the expression "#{bindings.FirstName.hints.VisibleFlag}". VisibleFlag is a custom property which it created in an EO level.



You can download the sample workspace from here.
[Runs with Oracle JDeveloper 11g R1 PS2 + HR Schema]
How to run this sample?
Run using the Run.jspx. It contains FirstName, LastName, Email, HireDate, PhoneNumber & Salary Fields.But here the fields Email & HireDate won't visible because this VisibleFlag is 'N' at EO Attribute Level.

No comments:

Post a Comment