Group Table layout

Hi,
I’m using cuba 7.2.9

My entities are "Runner " (firstname , lastname) and training session( date, kilometers)

In the Runner browser screen, could I add a column Sum of kilometers?

I did something approching (cf grouptablereproducer.zip 991.6 KB) …
the expanded view : (after lots of clics ! )
image

image

the collapsed view not user friendly, we don’t see the firstname
image

image

…but not exactly what I want
To improve readability and ergonomy (number of clics to expand rows), Is it possible all grouped values on the same line

image

image

image

image

This is a simple reproducer, in my usecase, Instead of 2 columns (first and last name), I have 5 columns so the number of clicks become painfull.

Is it possible to get this kind of display ?

Note : may be some “expand/collapse” buttons represented in my “ideal screen” above should be removed.

Regards,
Guillaume

Hello,

For more convenient grouping you can combine firstName and lastName fields using @MetaProperty.
For instance:

@Table(name = "GROUPTABLEREPRODUCER_RUNNER")
@Entity(name = "grouptablereproducer_Runner")
@NamePattern("%s|firstName")
public class Runner extends StandardEntity {
    
    ...

    @MetaProperty
    public String getFullName() {
        return firstName + " " + lastName;
    }
}

And in the training-session-browse descriptor add column “fullName”:

<columns>
    <column id="runner.fullName"/>
    <column id="sessionDate"/>
    <column id="kilometers">
        <aggregation type="SUM"/>
    </column>
</columns>

See reworked project: grouptablereproducer.zip (94.4 KB)

image