Main Menu

The main menu of the MYOB Acumatica mobile app consists of workspaces, a placeholder for adding KPI widgets, the list of recently visited screens and records, the list of screens and records marked as favorites, and the bottom menu with the Home, Search, Favorites, and Settings buttons. A user can go to any of these parts of the mobile app by tapping the needed part of the screen.

Note:
The workspaces in the mobile app are not the same as the workspaces in the web version. You configure mobile workspaces separately (see To Manage the Workspaces of the Mobile App).

To add a screen to the main menu, you perform the following steps:

  1. Map the screen to the mobile site map, as described in To Add a Screen to the Mobile Site Map (Example)
  2. Add the screen to the mobile site map, as described in To Update the Main Menu of a Mobile App
  3. Add the screen to a workspace, as described in To Manage the Workspaces of the Mobile App
Note:
The access rights for screens in the mobile application are the same as the access rights for screens in MYOB Acumatica.

The start page of the main menu contains all child tags of the sitemap instruction.

In this topic, you can read about and perform several simple examples that demonstrate how to build the main menu of the mobile application.

Exploring of the Original Main Menu Code

You can view the original code of the main menu of the MYOB Acumatica mobile app by doing the following:

  1. Open the Customization Projects (SM204505) form, and in the Project Name column, click the link of the customization project. The Customization Project Editor opens.
  2. Open the Mobile Application page.
  3. On the More menu of the page, click Update Main Menu.

    The Update: MENU page opens. The Update: MENU screen appears in the list of modified screens on the Mobile Application page.

  4. On the Update: MENU page, explore the original code of the main menu in the Result Preview area.

The mobile app's main menu is shown in the following screenshot.

Figure 1. The main menu of the mobile app


Example: Adding a Screen to a Workspace

Adding a screen to a workspace consists of two actions:

In this example, you will add the Unreconciled transactions widget of the Controller dashboard to the CRM workspace by using the Mobile Workspaces (AU220012) and Mobile Workspaces (AU220013) forms.

To add the widget, perform the following steps:

  1. Open the Mobile Workspaces form.
  2. In the Workspace ID column, click CRM.

    The Mobile Workspaces form opens.

  3. On the table toolbar of the Widgets tab, click Add Row, and specify the following settings in the added row:
    • Dashboard: Controller
    • Widget: Unreconciled transactions
  4. Save your changes.
  5. Sign out of the mobile app, and then sign in again.
  6. On the main menu, tap CRM.

    The workspace should look similar to the one shown in the following screenshot:

    Figure 2. The CRM workspace with the added widget

Example: Adding a Screen to a Folder

Important:
As of MYOB Acumatica 2024.1, the adding of screens by methods described in the section has been deprecated. We recommend that you use the workspace functionality as described in To Configure Workspaces in the MYOB Acumatica Instance.

Adding a screen to a folder consists of two actions:

In this example, you will add a shortcut of the Controller screen to the Dashboards folder of the main menu. Copy the code below to the Commands area of the Update: MENU page in the Customization Project Editor.
update sitemap {  
  add folder "Folder_0" {
    displayName = "Dashboards"    
    icon = "system://Folder"    
    add item "DB000015" {      
      displayName = "Controller"      
      icon = "system://Graph1"    
    }  
  }
}

The screenshots below show the results of this code on the mobile device.

Figure 3. The main menu, the contents of the folder, and the screen


Note:
A folder must include at least one screen.

A folder can be of one of the following types, which determine how the folder contents are displayed:

  • ListFolder (default): With a folder of this type, folders and screens are represented as tiles with icons (see the first screenshot in the example in this section, shown above). You need to tap an icon to open a folder or screen.
  • HubFolder: In a folder of this type (see an example in the right screenshot at the end of the next section), the content of a screen is displayed like a tab item on a form. You swipe left and right to navigate through the contents of the folder.
Note:
Nested folders of the HubFolder type are not supported. That is, you may not add a folder of the HubFolder type within another folder of HubFolder type.

Example: Configuring Screens for Forms with Tabs

Some MYOB Acumatica forms display lists on multiple tabs (as the following screenshot shows).

Figure 4. MYOB Acumatica form with multiple tabs


In the mobile app, such a form is represented as multiple subscreens, with each subscreen corresponding to a single tab. However, you have to configure only one screen because the mobile API server automatically performs the screen expansion into multiple screens.

Note:
In the following example and the screenshot shown above, we will use the Invoiced Items generic inquiry (GI000008). If you don't have this generic inquiry in your instance of MYOB Acumatica you can create this generic inquiry. For details, see To Add a Generic Inquiry to a Project.

To configure a screen for a form, do the following:

  1. Add the GI000008 screen to the mobile site map by performing the steps described in To Add a Screen to the Mobile Site Map (Example).
  2. Copy the following code to the Commands area of the Add: GI000008 page, and save your changes.
    add screen GI000008 {
      add container "Result" {
        add field "AccountName"
        add field "CustomerClassID"
        add field "InvoiceDate"
      }
    }
  3. Update the main menu of the mobile app with the following code. For details, see To Update the Main Menu of a Mobile App.
    add folder "Invoiced_Items" {
      type = HubFolder
      displayName = "Invoiced Items"
      icon = "system://Pen"
      add item "GI000008" {
        displayName = "Invoiced Items"
      }
    }
  4. Add the screens to the CRM workspace, as described in To Configure Workspaces in the MYOB Acumatica Instance.
  5. Publish your customization project, and open the mobile app.

The following screenshots show the result of this code on a mobile device. The first screenshot shows the changes to the main menu. The second screenshot shows the added screen with tabs.

Figure 5. The multi-tab screen represented as a folder