
Dear Community,
thank you for reading this! I have a problem I can not get arround. I have a ForAll(Patch))-Process which on first time usage does not trigger immediately. It takes a couple of seconds, sometimes longer before the code gets processed. Subsequent uses (patches) fire directly and fast. What can be the Problem here?
Warten is a Variable for a Waiting Screen so that users do not push buttons etc. while the patch is active. That loading screen is on first time usage not visible for the first seconds.
Here is the Code:
Set(Warten;true);;Patch(Lehrkörper;
ForAll(
Filter(Gallery_Lehrkörper.AllItems;
(CountRows(ComboBox3.SelectedItems) > 0) || (CountRows(ComboBox3_1.SelectedItems) > 0)
) As _item;
If(CountRows(ComboBox3.SelectedItems) > 0;
{ID: _item.ID;
'Dozent 1': Concat(_item.ComboBox3.SelectedItems; Result);
'Ampel 1': 0
};
{ID: _item.ID;
'Dozent 2': Concat(_item.ComboBox3_1.SelectedItems; Result);
'Ampel 2': 0
}
)
)
);;Set(Warten;false)