2 Fields as captionProperty for Tree Object

Hi all,

Is possible to use 2 fields as caption for a Tree Object?
I have an Integer field, and a description fields, and would like to use
“1 - Record 1”
“2 - Record 2”
“3 - Record 3”

as captionProperty.

Hi,

You can add a method to your entity class like this:

@MetaProperty
public String getMyCaption() {
    return String.valueOf(num) + description;
}

Then you can use the myCaption attribute as captionProperty.