Skip to main content

UI Categories...What is that?

Well...If you worked on JDeveloper release, you might have noticed UI Categories option in View Object editor. This is a useful to group/order the view object attributes, and will be used by the components like af:query, dynamic:form etc in future releases. Please be patient and getting ready for some new things arriving soon!
You can learn more from fusion developers guide - 5.13.3 How to Define UI Category Hints.


cpierres said…
Hi Jobinesh,

I see this old post and I put a question about it in Forum (for JDev12c) :

In my viewObjectDef /createDef method, I need to assign programmatically to an attributeDef a specific "UI Category" as you can define interactively in JDev for each attribute.

Unfortunately, I don't find the API ...

I would like to write something like that :

for (AttributeDefImpl aDef : aDefs) {

attribName = aDef.getName();

if (attribName.indexOf("user") > -1) {

// add dynamically a new UI Category (if possible)

CategoryManager categoryManager = getCategoryManager();

CategoryImpl category = new CategoryImpl();




// then assign this category to an AttributeDef

//aDef.setProperty ???


Have you got an idea ?

姜涛 said…
Hi Jobinesh,
you said the category UI hints can be useed at the af:query.
I have tried to set the category UI hints,but no sperator be rendered at af:query.
can you share a example for my puzzle.
You may see the order of attributes changes at run time based on the order that you are adding them to the Category. However it wont result in display of any 'grouping'/separators in the UI

Popular posts from this blog

Happy New Year 2018 !

We can't go back and change the beginning, but we always can start where we are and change the ending. Believe in yourself and you will be unstoppable!

Wishing you and your family a very happy new year 2018 !!!

How to set Bind Variable Values at runtime ?

In this post I'm sharing a couple of approaches for programmatically setting bind variables values at run time. This post is an attempt to explain 'When to use what ?'[ In case if you are familiar with 'Bind Variables' in ADF BC, please refer Section 5.10, Working with Bind Variables in Fusion Developer's Guide ]

1. Set the Bind Variable value using RowSet::setNamedWhereClauseParam(...)

You can use use the setNamedWhereClauseParam(...) method on the ViewObject interface (which extends oracle.jbo.RowSet) to set the value for bind variables. Please note this sets the value on default RowSet. In other words, this doesn't have any effect on the secondary RowSets that you/system generates.
ViewObject vo = am.findViewObject("EmployeesView1"); vo.setNamedWhereClauseParam("bindVarDeptId", new Number(10)); vo.executeQuery();
2. Set the Bind Variable value using ViewObject's VariableValueManager::setVariableValue(...)

VariableValueManager Ma…