UI Categories...What is that?

Well...If you worked on JDeveloper 11.1.2.0.0 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.

Comments

cpierres said…
Hi Jobinesh,

I see this old post and I put a question about it in Forum (for JDev12c) :
https://forums.oracle.com/thread/2585448

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();

category.setType(Category.CategoryType.ATTRIBUTE);

category.setName("FieldUserActive");

categoryManager.addCategory(category);



// then assign this category to an AttributeDef

//aDef.setProperty ???

}

Have you got an idea ?

Thanks,
姜涛 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

Disclaimer

The views expressed on this blog are my own and do not necessarily reflect the views of my employer.