My Scene has OnVisible
Set(VarSection,"");
ClearCollect(
ColSessions,
{
Session: "",
Section: "",
Site: ""
}
);
My Button has OnSelect
If(
CountRows(Filter(ColSessions,Section = VarSection)) < 1,
Set(VarSession,GUID())
);
Patch(
ColSessions,
{
Session: VarSession,
Section: VarSection,
Site: VarSite
}
)
);
This works after the first press, but the second press has an error on the Patch saying " The data source supplied to the function is invalid."