So i'm creating my first PowerApp and i'm trying to change a button in a gallery based on some global variables. But it seems i cant set a variable to a value containing ThisItem. Is this not possible or am i doing something wrong? Find my code underneath:
Set(
varSelectedItem, {
Dataset: list_equipmentType,
ButtonText: ThisItem.list_'Equipment Type'
})
(list_equipmentType is a sharepoint list and 'Equipment Type is a column in this list)