You’re a software developer for a large retail company.
You need to quickly design an application that can leverage your company’s customer
data from Oracle Sales Cloud and be easy to use by your sales representatives to track
the corporate branded merchandise given to customers and prospects.
Oracle can help! Oracle offers several Sample Applications
as example patterns for quick development.
These Sample Applications include source code that you can review right in your environment,
to help you get started with creating your own custom applications.
Today we're using the Sales Merchandise Tracker.
This sample application allows sales managers and sales representatives to track corporate
merchandise given to customers and prospects.
Exploring this sample app is a good way to demonstrate the power and simplicity of the
Oracle Application Builder Cloud service for extending SaaS services like Oracle Sales
Cloud.
Let's start by downloading the Sales Merchandise Tracker from Oracle’s public GitHub repository.
Next, import the Sales Merchandise Tracker in your Oracle Application Builder Cloud Service
instance.
The Sales Merchandise Tracker Sample Application is comprised of three modules:
• The Customer Info, • the Inventory Analysis,
• and the Inventory Info.
The Customer Info module allows the sales representative to create, update and delete
customers.
This page obtains customer data by calling an Oracle Sales Cloud Service RESTful service
which you can see in the services page of the data designer.
This is also the entry point for the merchandise allocation.
The Merchandise Allocation, allows the sales representative to create, update and delete
the merchandise allocation items for the selected customer.
The Inventory Analysis module allows the sales representative to review the inventory by
showing different data visualization gadgets offered out of the box by Oracle Application
Builder Cloud Service.
The gauge dial gadgets are special because they are custom Oracle JET components that
you can include in your application.
The Inventory Info module allows the sales representative to add, update and delete products
from the inventory.
Now, let’s explore the business objects that comprise this sample application
The main business object is the sales cloud account SDO (SS-Dee-Oh) which is based on
the Oracle Sales Cloud RESTful service; this RESTful service provides two datasets: one
for the accounts and one for the addresses used by the customer info page and is also
related to the MerchandiseAllocation custom business object.
Because the Oracle Application Builder Cloud Service and the Oracle Sales Cloud Service
instances are in the same identity domain, you can authenticate the service using an
Oracle Cloud account.
Now, let’s talk about the Merchandise Allocation business object.
This business object is a custom object that’s used by the Merchandise Allocation page.
It’s related with the sales account object and with the merchandise object.
You can add an input validation rule in the Date_Issued field to validate the date range
when a record is created.
Moving to the visual part of the Sales Merchandise Tracker, let’s see how you can add Oracle
JET custom components to your pages.
The custom code editor is divided in four sections.
Template, Model, Application Style, and Generated Page Model.
For this example we’ll focus in the Template and Model sections only.
Use the template section to write HTML code.
This code is pure HTML and if you’re familiar with the knockout.js framework, you’ll notice
the data-bind attribute Use the model section to write your custom
JavaScript code.
It’s important to use the comments in the code window as guidelines of where you should
add your custom code.
You’ll notice that this code leverages from the knockout.js framework.
The comments also provide details on the HTML code and the JavaScript code.
You can access the application’s business objects programmatically by using the Oracle
Application Builder Cloud Service APIs.
Now you know how to import the Sample Application, and understand how the pages work, so you
can get started with customizing it to work for you.
Thank you for watching.
To download the Sales Merchandise Tracker and find out more about Sample Applications,
visit us online at the Oracle Cloud Developer Portal