Creating an expression to Track the History of Another Column (List has Elements of Mismatched Types)

Hello,

We have a CLASS column (Type=REF) that tracks which class a student is currently in. I want to create a CLASS HISTORY (Type=EnumList) column that will show a list of all previous values in the CLASS column, and the date of change. So for example, maybe the CLASS value is Smith.Lit101, and the CLASS History would say Smith.Lit101 8/23/21, Harris.Mth200 4/15/21, Piper.Phil101 3/12/20, etc.

I donโ€™t think that the โ€œChangeโ€ column types will work for this (right?). So Iโ€™m trying to create a bot. The trigger is set to occur when a change is made to the CLASS column. Hereโ€™s my attempt at the expression used in the process part of the bot:

SORT( [Class History] + LIST([Class], Today()) - LIST(""), TRUE)

So, begin with the current CLASS HISTORY value, then add another list item that contains the current value of the CLASS column + todayโ€™s date.

AppSheet wonโ€™t accept this formula, since it says the list has elements of mismatched types. Iโ€™m not exactly sure what the cause of the mismatch is, or how to get around it. Is there a way to tell AppSheet to allow mismatched elements? Or is there a better way to do this?

Thank you!

Solved Solved
0 6 288
1 ACCEPTED SOLUTION

I see. Now that I know your structure is a bit more sophisticated, I think what you need is an ENROLLMENTS table that marries a Class and a Student together. Then you can get the related list of Students for each class but also the related list of classes for each Student.

View solution in original post

6 REPLIES 6
Top Labels in this Space