Hello.
I am currently developing the MAF mobile app. I am using MAS Manage 9.1.14.
When the app launches, data is retrieved from each application, but I do not like the fact that data is fetched even for items the user hasn't viewed yet
I intend to display assets and the work orders associated with those assets. The user flow is as follows: Main Page > Selected Asset Details Page > Related Work Order Page.
I would like the data for a specific work order to be downloaded when a user taps a card on the main page to navigate to the details page, and then selects a specific work order tile on the details page to move to the work order page.
Alternatively, it would be fine to have the data for a specific asset downloaded when navigating from the main page to that Asset details page.
Is this implementation possible?
<page controller="ZWorkPageController" id="zplanwork" padding="true" title="Plan Work">
<states>
<state name="canLoadList" value="false" type="boolean"/>
</states>
<header-template title-column-width="{app.state.screen.size === 'lg' ? 45 : 60}"/>
<maximo-datasource cache-expiry-ms="86400000" can-load="{page.state.canLoadList}" id="zplanWorkResourceDS" object-structure="ZMAF_ASSET" item-url="{page.params.itemhref}" offline-immediate-download="true">
<schema>
<attribute name="wonum"/>
<attribute name="description"/>
<attribute name="workorderid" unique-id="true"/>
<attribute name="fromdate" searchable="true" sub-type="DATE"/>
<attribute name="todate" searchable="true" sub-type="DATE"/>
</schema>
<maximo-datasource controller="ZWorkDataController" cache-expiry-ms="86400000" can-load="{page.state.canLoadList}" id="zplanWorkListDS" relationship="zwo_plan" selection-mode="none">
<schema>
<attribute name="workorderid" unique-id="true"/>
<attribute name="wonum"/>
<attribute name="targstartdate"/>
<attribute name="description"/>
</schema>
</maximo-datasource>
</maximo-datasource>