Wednesday, October 26, 2016

Creating an Application in Oracle Max - Part 5 - Adding Navigation and Testing


Continuing our series of Oracle Mobile Application Accelerator blog posts we will now set some navigation up

The QuickStarts added the screen navigation for the Opportunities and Accounts screen flows for you. You can traverse back and forth within them, but at this point, you can't access one from the other. Further, the dashboard isn't connected to the Opportunities flow, meaning that if you ran the app right now, it would open to the dashboard, but you couldn't drill down to the list of opportunities. In this step, you'll tie the app together by creating navigation actions from the dashboard to the Opportunities screen and from the Account screen to the Opportunity screen.
In this step, you're going enable your users to drill down from the dashboard into the list of opportunities.
  1. Navigate to the Dashboard using either the Screen Flow or Application Screens tools in the navbar.
  1.  the Preview, select the 30d metric component.
  2. In the Properties Inspector, click Actions.
    1. Click Add Action
    2. Click Tap.
    3. In the Configure Action page, choose Navigate to Screen as the action that's triggered when a user taps a list item.
    4. Move the Navigate to Screen action into the field that says DRAG AN ACTION HERE.
    5. Choose Opportunities from the Screen menu and then click Save.
                                  

  1. By setting the Opportunities list as the target screen, you enable users to open the list of all of the opportunities when they click the 30d metric. You need to refine this mapping so that users see only the opportunities that are projected to close within 30 days when they click this metric. You'll narrow the items that display in the Opportunities page using the Navigation Data Mapper:
  1. The Current Screen category is open, displaying the field values that belong to the Statistics business object which back the Dashboard's LED Gauge components with data. Because these fields are used to return integers, you can't use them to control the display in the Opportunities screen. You're going to add a value instead, so click the Fixed Value category. 
  2. Drag Fixed Value into the Closein field and then enter 30.

    1. Click Finish and then click Save after you return to the Configure Action page.
  1. Repeat these steps for the 60d and 90d metrics by adding 30 and 60 in the Closein field.
That's done, so now let's look at mapping in the status meters
  1. In the Preview, select the NA Region tile.
  2. Click the Action tab in the Properties Inspector
  3. Click Add Action.
  4. Click Tap. 
  5. Choose Navigate to Screen and then pick Opportunities from the Screen menu.
  6. Like the counters, you want to filter the items that display in the Opportunities list. This time, you'll use the region codes to filter the data. To start off, click Navigation Data Mapper.
  7. Open the Fixed Value category and then add a fixed value of NA to the Region field. 
  8. Click Finish and then Save.
  9. Repeat these steps for the rest of the status meter tiles. Enter SA, EU, and AP in the Region field. 
  10. Click Screen Flow in the left navbar to take a look at the navigation from the Dashboard to the Opportunities screen.


In this step, you'll enable users to drill down from the Account detail screen to the Opportunity detail screen.
  1. In the Screen Flow window, open the Account screen by double-clicking the Account screen shot.
  2. Click the Actions tab. 
  3. Because you created this screen using the QuickStarts, MAX has already added the Load Screen action for the List component. Because you're going to add one more, click Component Action
  4. Choose Tap
  5. Choose Navigate to Screen and then pick Opportunity from the Screen list
  6. Click Navigation Data Mapper.
  7. If it's not already selected, click the Current Screen category.
  8. OID should be already mapped. 
    1. Click Finish and then click Save after you return to the Configure Action page.
      With the navigation complete, the screen flow should look like this:



WELL DONE, we are finished.. Now to test 
You can install the test version of the CRM using the MAX App. You install the CRM app by scanning a QR code with the MAX App.
To generate this QR code.
  1. Click Test.
  2. Click Test on Phone.
  3. Click Build Test Application
  4. MAX generates the test QR code.
  5. Click the Show QR Code icon.
  6. The QR code for testing appears. When you're ready to share your app, you'll generate a second QR for the final version of the app.
  7. On your phone, click the MAX app icon to open the MAX App.
  8. In the MAX landing page, click Scan.( the big Plus sign)
    1. Aim the scanner at the test QR code.
      1. Log in with your test user name and password and have a run through the application. 




No comments: