We’ve built wizard-style form which has multiple screens with Next and Back buttons. We are storing a Table Variable for one of the screens that is populated with values when checkboxes in a gallery are ticked. We use the OnCheck property to populate the variable.
Checkbox code for OnCheck property:
Set(Ljm, ShowColumns(Filter(GalleryLjms.AllItems, DataCardCheckboxLjms.Value),Value));
Then when the user navigated back to the screen using the wizard, we populate the set checkbox control based the table variable using the OnVisible property:
OnVisible property of the screen
If(FormMode.New Or FormMode.Edit,
If(
!IsBlank(DataCardValueLjms.SelectedItems),
Set(Ljm, DataCardValueLjms.SelectedItems)
);
)
The problem is that a few days ago, we noticed that the table variables are being cleared whenever we navigated back to the screen and try to reload the controls. Nothing changed in the form solution. It appears to be somehow related to the FormMode.New and FormMode.Edit functions but we don’t know what has changed. Has anyone else encountered as similar issue?