Skip to content

Navigation

navigator {  
   entry WoApp toplevel at index 0 {  
      label = "Work Order App";  

      entry WorkOrders;  
      entry Customers;  
   }  

   entry WorkOrders {  
      label = "Work Orders";  
      page WorkOrdersPage;  
      icon = "clipboard";  
      count = GetWorkOrdersCount;  
   }  

   entry Customers {  
      label = "Customers";  
      page CustomersPage;  
      icon = "person";  
      count = CustomersSet;  
   }  
}  

If only one entry is defined within the navigator, then it will be used as a default start page. This implies that the "dashboard" or "home" screen will not be shown on startup and in the navigation menu (side menu).

The count keyword can be used in navigator entries to specify an entity set or a function which can be used to retrieve a value that is to be shown in the home screen (dashboard) item.

Limitations

Navigator hierarchy is not supported. Apps should use a minimal number of entries under a single main entry and they should use commands to drill down to other pages. If there are multiple entries defined, only the toplevel entry is considered. If there are no toplevel entries, then the first one is considered.

Launch APK

command ApkLink {
   label = "Open Google Chrome (Android)";

   execute {
      navigate "ifs-apk://com.android.chrome";
   }
}

The navigate keyword can be used to launch an APK. The ifs-apk:// prefix must be used to identify the URL as the APK URL. The package name should be followed by the prefix ifs-apk://.

Launch Broadcast Intent

command SendBroadcastIntent {
   label = "Send Broadcast Intent";

   execute {
      navigate "ifs-broadcast-intent://com.broadcast.test.TEST_ACTION,com.broadcast.test.DISPLAY_TEXT:Broadcast Message Received Successfully!";
   }
}

The navigate keyword can be used to launch Broadcast Intent. The ifs-broadcast-intent:// prefix must be used to identify the URL as the Broadcast Intent URL. The package name should be followed by the prefix ifs-broadcast-intent://. The extras are separated by , and the name-value pair in extras are separated by :. There can be any number of extras.