New Bug Encountered in expression assistant

Iโ€™m creating a new application, and iโ€™ve got this error message

ORDERBY(SELECT(System[Sys_Label],AND([Sys_Type]=โ€˜TYPEFICHEโ€™,[Sys_Actif_B]=true),true), [Sys_Tri])
3X_3_0_30a491dbf18ba822e6219dd12ab0548e23b6e4e9.png

In table System the column Sys_Tri is present
3X_f_7_f7d81346cad4aa635581f7fdd5391811e9fa02cf.png

AppSheet knows this colum because it is displayed :
3X_6_1_614238abe68ab2a81f9b28a1a25dc973f51bf11e.png

What is strange is there is no error for this expression
3X_1_b_1b3fee604d1e6c1acbd117a2c5d9c04f9efe8c2b.png
No error for the Sys_Label column, So AppSheet knows the column Sys_Label

And when i add the Order By clause with this column

ORDERBY(SELECT(System[Sys_Label],AND([Sys_Type]=โ€˜TYPEFICHEโ€™,[Sys_Actif_B]=true),true),[Sys_Label])
3X_6_1_61310c19e61deb90648de1de3f893a30856105a4.png
Iโ€™ve got the error message !!

0 2 124
2 REPLIES 2

You seem to be constructing the ORDERBY() expression based on a non key column.

The ORDERBY() function is used to sort row references. So you may test the same expression by using [Sys_ID] instead of [Sys_Label]

ORDERBY(SELECT(System [Sys_ID],AND([Sys_Type]=โ€˜TYPEFICHEโ€™,[Sys_Actif_B]=true),true), [Sys_Tri])

Edit : From the article , the syntax of the ORDERBY() expression is

Syntax

ORDERBY( row-keys , sort-key [ , descending-order? [ , sort-key ] ]โ€ฆ )

So the function sorts the row keys.

yes it works with Sys_ID no error

but i wanted to store the Value of Sys_ID in the field, and to display the user Sys_Label
i will try with a Ref

Top Labels in this Space