Reputation: 3797
All,
I have mobile screen code:
<sm:Screen xmlns:sm="http://acumatica.com/mobilesitemap"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
DisplayName="Superannuation"
Id="MPES3013"
Icon="system://Credit"
Type="SimpleScreen"
OpenAs="Form">
<sm:Container Name="SuperannuationDetails"
FieldsToShow="3"
DisplayName="Superannuation Details"
>
<sm:Attachments Disabled="true"/>
<sm:Field Name="FundName" ForceIsDisabled="true" />
<sm:Field Name="ContributionType" ForceIsDisabled="true"/>
<sm:Field Name="Category" ForceIsDisabled="true" />
<sm:Field Name="MemberID" ForceIsDisabled="true"/>
<sm:Field Name="CalculationMethod" ForceIsDisabled="true"/>
<sm:Field Name="Value" ForceIsDisabled="true"/>
<sm:Field Name="ESCTRate" ForceIsDisabled="true"/>
</sm:Container>
<sm:Container Name="EmployeeInfoEmployeeCode" FormActionsToExpand="1">
</sm:Container>
</sm:Screen>
This code allows me to navigate to required data in 2 clicks:
How can I remove superannuation second screen and navigate directly into 3rd screen?
Upvotes: 0
Views: 94
Reputation: 36
If you want to display the grid in 'expanded' state, try removing openAs="Form"
and change Type
to FilterListScreen
, i. e.
<sm:Screen xmlns:sm="http://acumatica.com/mobilesitemap"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
DisplayName="Superannuation"
Id="MPES3013"
Icon="system://Credit"
Type="FilterListScreen">
...
</sm:Screen>
Also, you might want to add field(s) to primary container, so that user could change filtering criteria.
Upvotes: 2
Reputation: 8288
You have a master detail relationship setup where OpenAs="Form"
defines the master and Container Name="SuperannuationDetails"
defines the details. This is similar to the FormGrid template used for web pages except that form and grid section are displayed as separate screen on mobile.
The mobile opens the first screen so you can select the master document. Once the master document is selected, it will open the details screen associated to the selected master document.
It seems you don't want the master document but only details. For Acumatica screen, such a pattern would be the Grid
template instead of the FormGrid
. If you create the mobile screen from a web page make sure that page uses the Grid
template (only 1 grid visible on page, no form header).
Upvotes: 0