Hi, I have a problem with a very slow ForAll operation in the dropdown in the onChange property. I have a json file that I process in the application and upload to the collection. I create it using flow, which parameter is user mail. I have the same code on OnStart and it executes within 5 seconds, but the problem occurs with a certain dropdown control executes terribly long and suspends my applications. Can you help? I have no idea what to do about it anymore.
UpdateContext({_varLoading: true});
Clear(colRekl);
Set(
varPHTEL,
'[RS]GetPHTEL'.Run(ComboBox1.Selected.rs_Email).items
);
ForAll(
Table(ParseJSON(varPHTEL)),
Collect(
colRekl,
{
rs_Type: Text(ThisRecord.Value.Type),
rs_text1: Text(ThisRecord.Value.text1),
rs_text2: Text(ThisRecord.Value.text2),
rs_text3: Text(ThisRecord.Value.text3),
rs_text4: Text(ThisRecord.Value.text4),
rs_text5: Text(ThisRecord.Value.text5),
rs_text6: Text(ThisRecord.Value.text6),
rs_text7: Value(ThisRecord.Value.text7),
rs_text8: Value(ThisRecord.Value.text8),
rs_Date: Text(
DateTimeValue(ThisRecord.Value.Date),
"dd.mm.yyyy"
),
rs_text9: Text(ThisRecord.Value.text9),
rs_text10: Text(ThisRecord.Value.text10)
}
)
);
UpdateContext({_varLoading: false});

Report
All responses (
Answers (