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! Go to 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.
User | Count |
---|---|
24 | |
14 | |
4 | |
3 | |
3 |