Mapping Reports
- The report form already exists in MYOB Acumatica.
- The report form metadata has been added to the mobile site map.
- The user account has been granted access rights to view the report.
To map a report form to the mobile app, you have to add a screen for the report form. This screen must have the type attribute set to Report.
Using an Action to Generate a Report
MYOB Acumatica Mobile Framework supports the MYOB Acumatica actions that generate reports. To enable such an action in the mobile app, you should map the action to the form on which the action is invoked. For example, you could map the action to print a document to the entry form on which the document is created. In the mobile site map, the containerAction, recordAction, or selectionAction object has to contain the Redirect attribute set to True.
To map a report to the mobile app, do the following:
- Add the report form to the mobile site map. For details, see To Add a Screen to the Mobile Site Map (Example).
- Add the report form to the main menu of the mobile app. For details, see To Update the Main Menu of a Mobile App.
- Map the action that opens the report.
For example, if you need to map the Sales Order (SO641010) report to the Sales Orders (SO301000) screen, do the following:
- Add the Sales Order report to the mobile site map. The screen code should look as
follows.
add screen SO641010 { type = Report }
- Add the report to the main menu. The code for the main menu should look as
follows.
update sitemap { ... add item "SO641010" { displayName="Sales Order" visible=False } }
- In the Sales Orders screen, map the action that opens the Sales Order report. The
mapping of the action should look as
follows.
update screen SO301000 { update container "OrderSummary" { add recordAction "PrintSalesOrder" { redirect = True } } }
The following screenshot shows the resulting action button for the report in the screen's menu.
When a user performs the action by using the mobile app, the app immediately receives the corresponding report in PDF format from the MYOB Acumatica server and displays the report for the user, as shown in the following screenshot.