Getting all values from an enumlist which is reference

I'm confused. When I have a Type Enum with Item Type Reference, I can get the referenced text with [ColumnName].[TextValueFromRef].

However, if the type is EnumList, the same does not work. I'm sure I'm missing something obvious, but it seems like it should return a list with the text values.

Enum.PNGEnumList.PNGtype.PNG

So [ActivityType].[Type] works as expected, but [Activity Type Secondary].[Type] does not work.

Solved Solved
0 2 68
1 ACCEPTED SOLUTION

Aurelien
Google Developer Expert
Google Developer Expert

Hi @WhyMe 


@WhyMe wrote:

So [ActivityType].[Type] works as expected, but [Activity Type Secondary].[Type] does not work.


This is because [ActivityType] is an Enum type, hence a single value. 

[Activity Type Secondary] is an EnumList type, hence a list of values.

Dereferencing a list won't use a dot: you may prefer using this instead:

[Activity Type Secondary][Type]

For reference:

Build list dereferences - AppSheet Help

 

View solution in original post

2 REPLIES 2

Aurelien
Google Developer Expert
Google Developer Expert

Hi @WhyMe 


@WhyMe wrote:

So [ActivityType].[Type] works as expected, but [Activity Type Secondary].[Type] does not work.


This is because [ActivityType] is an Enum type, hence a single value. 

[Activity Type Secondary] is an EnumList type, hence a list of values.

Dereferencing a list won't use a dot: you may prefer using this instead:

[Activity Type Secondary][Type]

For reference:

Build list dereferences - AppSheet Help

 

Thank you. I'm still trying to get a good understanding of the syntax.

Top Labels in this Space