Ref multiple record and display Ref rows

I would to ref in a column A multiple record from another table and then when for example I see a record that has multiple record related I would to see also the related record table associated to that record.

How could I proceed?

Solved Solved
0 1 43
1 ACCEPTED SOLUTION

Aurelien
Google Developer Expert
Google Developer Expert

Hi @Espegg 


@Espegg wrote:

I would to ref in a column A multiple record from another table


 

Let's say you wish, in table A, to pick multiple items from table B.

Set your column type with EnumList, then base type Ref, source table B, and in the Valid_if expression, write:

tableB[key-columnB]

Here is an illustration with an order made of multiple items: 

Aurelien_0-1713505937509.png

Aurelien_1-1713505972467.png


@Espegg wrote:

then when for example I see a record that has multiple record related I would to see also the related record table associated to that record.


In a virtual column, based from the previous example, use this expression:

Aurelien_2-1713506207075.png

The result will be:

Aurelien_3-1713506269099.png

 

View solution in original post

1 REPLY 1

Aurelien
Google Developer Expert
Google Developer Expert

Hi @Espegg 


@Espegg wrote:

I would to ref in a column A multiple record from another table


 

Let's say you wish, in table A, to pick multiple items from table B.

Set your column type with EnumList, then base type Ref, source table B, and in the Valid_if expression, write:

tableB[key-columnB]

Here is an illustration with an order made of multiple items: 

Aurelien_0-1713505937509.png

Aurelien_1-1713505972467.png


@Espegg wrote:

then when for example I see a record that has multiple record related I would to see also the related record table associated to that record.


In a virtual column, based from the previous example, use this expression:

Aurelien_2-1713506207075.png

The result will be:

Aurelien_3-1713506269099.png

 

Top Labels in this Space