M.App Enterprise Discussions

Discuss topics with other M.App Enterprise Product pioneers and experts to get the most out of it.
Showing results for 
Search instead for 
Do you mean 
Reply
Highlighted
Contributor
Posts: 62
Registered: ‎11-15-2018

Mobile APP: Saving form and stay in form

Hello,

 

Is it possible to save a form but don't leave it after saving?

 

Our problem ist that we want to add an unknown number of objects to a new created form.
We realize it by 1:N <Table>, but there we need id of new form for saving objects in database.
Because form is new id doesn't exist yet.

Therefore we want to provide a button to save the form,
but still remain in opened form for adding list of objects.


Thanks in advance,
regards, Iris

Highlighted
Staff
Posts: 1,088
Registered: ‎10-18-2015

Re: Mobile APP: Saving form and stay in form

hi Iris,

 

please put the target to the form itself in the navigation.

 

Stefano

Stefano Turcato
Presale Engineer
Hexagon Geospatial
Highlighted
Contributor
Posts: 62
Registered: ‎11-15-2018

Re: Mobile APP: Saving form and stay in form

Hi Stefano,

 

it doesn't work. If we save form, form will be closed and ObjektList is reopened.

What I'm doing wrong?

We open form by <NavigateRowAction Icon="Plus" in ObjektList.xaml, perhaps is this the problem?

 

Here is our configuration.

 

Shell.xaml:

<Navigation Id="ObjektNavigation">
	<List Id="ObjektList" Title="Objekte" View="ObjektList" Entity="{x:Reference SP_Objekt}">
		<Form Id="ObjektForm" Title="Objekt" View="ObjektForm" Entity="{x:Reference SP_Objekt}" Target="ObjektList" />
	</List>
</Navigation>

<Navigation Id="PruefenFormNavigation">
	<-- here we want to stay in same form after saving -->
	<Form Id="PruefenForm2" Title="Kontrolle" View="PruefenForm" Entity="{x:Reference SP_Pruefen}" Target="PruefenForm2"/>
</Navigation>

ObjektList.xaml:

<List.RowActions>
	<NavigateRowAction Icon="Plus" Target="PruefenForm2">		
		<Parameter Name="Field.Value.id_Objekt" Value="@{id}"/>
	</NavigateRowAction>				
</List.RowActions>

Thanks,

regards, Iris

 

Highlighted
Occasional Contributor
Posts: 10
Registered: ‎08-10-2017

Re: Mobile APP: Saving form and stay in form

Hi all,

 

I've exactly the same problem like Iris.

I open a from by "NavigateShellAction", after the input of the attributes I want to save the form and stay in the same form.

If I save, the form will be closed and the form from, where I came from is opened again.

In the shell I also have the same configuration like Iris.

 

Do you already have a solution for this problem?

 

 

Highlighted
Frequent Contributor
Posts: 119
Registered: ‎11-29-2015

Re: Mobile APP: Saving form and stay in form

Hello,

I am facing the same issue..

 

Regards,

Hella