While building my latest app I encountered an error that was new to me
"incompatible type. we can't evaluate your formula because the context variable types are incompatible with the types of values in other places in your app"
I have two questions:
1. In general, what does this error mean and when does it occur?
2. What might be triggering the error in my code? I have supplied all 3 code blocks from my app where the error occurred.
Code Block #1 (from button OnSelect property)
Set(GalleryLevels,{
CurrentLevel:1,
Level1:Blank(),
Level2:Blank(),
Level3:Blank()}
);
Code Block #2 (from button OnSelect property)
Set(GalleryLevels,{
CurrentLevel:GalleryLevels.CurrentLevel-1,
Level1:If(GalleryLevels.CurrentLevel=2,Blank(),GalleryLevels.Level1),
Level2:If(GalleryLevels.CurrentLevel=3,Blank(),GalleryLevels.Level2),
Level3:If(GalleryLevels.CurrentLevel=4,Blank(),GalleryLevels.Level3)}
);
Code Block #3 (from gallery OnSelect property)
Set(GalleryLevels,{
CurrentLevel:GalleryLevels.CurrentLevel+1,
Level1:If(GalleryLevels.CurrentLevel=1,gal_drilldownProjects.Selected.Item,GalleryLevels.Level1),
Level2:If(GalleryLevels.CurrentLevel=2,gal_drilldownProjects.Selected.Item,GalleryLevels.Level2),
Level3:If(GalleryLevels.CurrentLevel=3,gal_drilldownProjects.Selected.Item,GalleryLevels.Level3)}
);