Hi
I have an app in which the user can choose either to "add feature" or to "edit existing feature", like shown below:
OnSelect property of "Add feature:
Set(g_featID,Blank());
Navigate(Screen2,ScreenTransition.None)
OnSelect property of "Edit Feature"
Set(g_featID,TextInput1.Text);
Navigate(Screen2,ScreenTransition.None)

Upon click, I wanted to use the same canvas-form for the two cases as:
- for "Add feature" the form should be in FormMode.New
- for "edit feature" the form should be in FormMode.Edit
So in the next screen, i implemented like this:
OnVisible property of Screen:
If (IsBlank(g_featID), UpdateContext({l_featMode : "Add"}), UpdateContext({l_featMode : "Edit"}));
UpdateContext({l_status : Blank()});
Refresh(TblFeatures)
Properties of the form on this screen:
DefaultMode: Switch(l_featMode, "Add", FormMode.New, "Edit", FormMode.Edit)
Item: If (Not(IsBlank(g_featID)), LookUp(TblFeatures, FeatureID=g_featID))
With this, I get correct behaviour if I add one feature:
Add feature form


Edit feature form:

But now, if I try to add another record by clicking on "add feature", the form is stuck as "No item to Display":

Note that the first record is added successfully as can also be seen in the excel table.
To me, it looks like a bug!
Will appreciate any support/workaround in this issue.
(unfortunately, I cant export and share app package due to corporate restrictions)
Thanks.