Exercise 1: The Start of Customer Management Application
Exercise 1: The Start of Customer Management Application
Exercise 1: The Start of Customer Management Application
Exercise Structure
Development stages
1. Get your Personal environment
2. Exercise context
3. Application analysis
4. Hands-on exercises
OutSystems.
OutSystems.
All All
Rights
Rights
Reserved
Reserved
www.outsystems.com
OutSystems.
OutSystems.
All All
Rights
Rights
Reserved
Reserved
www.outsystems.com
OutSystems.
OutSystems.
All All
Rights
Rights
Reserved
Reserved
www.outsystems.com
OutSystems.
OutSystems.
All All
Rights
Rights
Reserved
Reserved
www.outsystems.com
Tutorial
A 5min application
Exercise context
Overview
Company ACME Goods is a retail distribution company that acquires its products directly from the
producers and sell them to small/medium shops.
ACME Goods is looking for an application to manage their existing customer base information and
manage their shortage of products on a proactive way.
Main Needs:
OutSystems.
OutSystems.
All All
Rights
Rights
Reserved
Reserved
www.outsystems.com
Application design
Basic Information Architecture
Customers
Products
Category
Purchase
Orders
1.
2.
3.
4.
OutSystems.
OutSystems.
All All
Rights
Rights
Reserved
Reserved
www.outsystems.com
Hands-on exercises
Use cases
Hands-on exercises
Use cases
As a customer representative I should be able to search for customers, edit their information,
create new customers and register their purchases.
As a product stock manager I should be able to access the products in stock, register new
products, edit information about a product and associate products with categories.
10
OutSystems.
OutSystems.
All All
Rights
Rights
Reserved
Reserved
www.outsystems.com
Hands-on exercises
Step 1 - Use a pre-built component available on Forge
Forge is the OutSystems online free store were users can reuse components, applications,
connectors and themes from the OutSystems Community Worldwide.
11
OutSystems.
OutSystems.
All All
Rights
Rights
Reserved
Reserved
www.outsystems.com
Hands-on exercises
Step 2 Install a Theme from Forge
12
OutSystems.
OutSystems.
All All
Rights
Rights
Reserved
Reserved
www.outsystems.com
Hands-on exercises
Step 3 - Use a pre-built component available on Forge
13
OutSystems.
OutSystems.
All All
Rights
Rights
Reserved
Reserved
www.outsystems.com
Hands-on exercises
Step 4 - Review applications on our environment and Create a new app
14
OutSystems.
OutSystems.
All All
Rights
Rights
Reserved
Reserved
www.outsystems.com
Hands-on exercises
Step 5 Name your application
15
OutSystems.
OutSystems.
All All
Rights
Rights
Reserved
Reserved
www.outsystems.com
Hands-on exercises
Step 6 Access data model section
16
OutSystems.
OutSystems.
All All
Rights
Rights
Reserved
Reserved
www.outsystems.com
Hands-on exercises
Step 7 Create the Customer entity
17
OutSystems.
OutSystems.
All All
Rights
Rights
Reserved
Reserved
www.outsystems.com
Hands-on exercises
Step 8 Bootstrap sample data
1. After the creation of the Customer entity we want to bootstrap some information to use as
sample data.
2. To do this right click on the Customer entity then go to Advanced and then click Create
Action to Bootstrap Data from Excel...
3. Use the Customers.xls for the bootstrap. (get it from www.outsystems.com/goto/jumpstart)
18
OutSystems.
OutSystems.
All All
Rights
Rights
Reserved
Reserved
www.outsystems.com
Hands-on exercises
Step 9 Create interfaces for your application
OutSystems.
OutSystems.
All All
Rights
Rights
Reserved
Reserved
www.outsystems.com
Hands-on exercises
Step 10 Change the interface
20
OutSystems.
OutSystems.
All All
Rights
Rights
Reserved
Reserved
www.outsystems.com
Hands-on exercises
Step 11 Change the interface
21
OutSystems.
OutSystems.
All All
Rights
Rights
Reserved
Reserved
www.outsystems.com
Hands-on exercises
Step 12 Create the detail and edit page for customers
22
OutSystems.
OutSystems.
All All
Rights
Rights
Reserved
Reserved
www.outsystems.com
Hands-on exercises
Step 13 Deploy the application
23
OutSystems.
OutSystems.
All All
Rights
Rights
Reserved
Reserved
www.outsystems.com
Hands-on exercises
Step 14 - Congratulations! You have built your first applications!
24
OutSystems.
OutSystems.
All All
Rights
Rights
Reserved
Reserved
www.outsystems.com
Hands-on exercises
Step 15 Create the Products entity
OutSystems.
OutSystems.
All All
Rights
Rights
Reserved
Reserved
www.outsystems.com
Hands-on exercises
Step 16 Create the Categories entity
26
www.outsystems.com
Hands-on exercises
Step 17 Create the product list and detail pages
1. Drag the Product entity twice to the MainFlow to create both pages;
2. Deploy the application
27
OutSystems.
OutSystems.
All All
Rights
Rights
Reserved
Reserved
www.outsystems.com
28
OutSystems.
OutSystems.
All All
Rights
Rights
Reserved
Reserved
www.outsystems.com
Screens:
Customers;
Products;
Categories.
Asynchronous Methods:
29
OutSystems.
OutSystems.
All All
Rights
Rights
Reserved
Reserved
www.outsystems.com
Hands-on exercises
Step 18 Create a relation between Customer and Product
CustomerId, Customer Identifier; *** NOTE This is a NEW field leave the existing Id field alone!
ProductId, Product Identifier ;
TotalPrice, Currency;
Quantity, Integer;
Discount ,Integer.
OutSystems.
OutSystems.
All All
Rights
Rights
Reserved
Reserved
www.outsystems.com
Hands-on exercises
Step 19 Add PurchaseOrders to customer
OutSystems.
OutSystems.
All All
Rights
Rights
Reserved
Reserved
www.outsystems.com
Hands-on exercises
Step 20 Deploy the application
32
OutSystems.
OutSystems.
All All
Rights
Rights
Reserved
Reserved
www.outsystems.com
Screens:
Customers;
Products;
Categories.
Asynchronous Methods:
33
OutSystems.
OutSystems.
All All
Rights
Rights
Reserved
Reserved
www.outsystems.com
34
OutSystems.
OutSystems.
All All
Rights
Rights
Reserved
Reserved
www.outsystems.com
OutSystems.
OutSystems.
All All
Rights
Rights
Reserved
Reserved
www.outsystems.com
1. Type your companys URL or any branded website to capture its style.
Remark: This will create automatically the style layer based on the supplied website.
36
OutSystems.
OutSystems.
All All
Rights
Rights
Reserved
Reserved
www.outsystems.com
37
OutSystems.
OutSystems.
All All
Rights
Rights
Reserved
Reserved
www.outsystems.com
1. Select all the generated CSS (Ctrl + A) code and copy (Ctrl + C) it.
38
OutSystems.
OutSystems.
All All
Rights
Rights
Reserved
Reserved
www.outsystems.com
OutSystems.
OutSystems.
All All
Rights
Rights
Reserved
Reserved
www.outsystems.com
40
OutSystems.
OutSystems.
All All
Rights
Rights
Reserved
Reserved
www.outsystems.com
41
OutSystems.
OutSystems.
All All
Rights
Rights
Reserved
Reserved
www.outsystems.com
42
OutSystems.
OutSystems.
All All
Rights
Rights
Reserved
Reserved
www.outsystems.com
Extra Mile
Finished sooner? Great! Lets do an extra mile and improve your application
44
OutSystems.
OutSystems.
All All
Rights
Rights
Reserved
Reserved
www.outsystems.com
Hands-on exercises
Step 30 Remove the Total Price column from the editor
1. Go to Customer_PurchaseOrder_PopupEditor page.
2. Delete the TotalPrice line (delete all the container).
45
OutSystems.
OutSystems.
All All
Rights
Rights
Reserved
Reserved
www.outsystems.com
Hands-on exercises
Step 31 Retrieve product information based on the purchase
46
OutSystems.
OutSystems.
All All
Rights
Rights
Reserved
Reserved
www.outsystems.com
Hands-on exercises
Step 32 Configure the product query
47
OutSystems.
OutSystems.
All All
Rights
Rights
Reserved
Reserved
www.outsystems.com
Hands-on exercises
Step 33 Configure the assignation
48
OutSystems.
OutSystems.
All All
Rights
Rights
Reserved
Reserved
www.outsystems.com
Hands-on exercises
Step 34 Calculate the Total Price based on the amount
OutSystems.
OutSystems.
All All
Rights
Rights
Reserved
Reserved
www.outsystems.com
Hands-on exercises
Step 35 Calculate the Total Price based on the quantity
1. Double click the value and perform the multiplication UnitPrice times Quantity:
GetProductById.List.Current.Product.UnitPrice* PurchaseOrderForm.Record.PurchaseOrders.Quantity
Remark: This will calculate the price based on the units and amount purchased.
50
OutSystems.
OutSystems.
All All
Rights
Rights
Reserved
Reserved
www.outsystems.com
Copyright
This material is owned by OutSystems and may only be
used in the ways described in this Copyright Notice:
You may take temporary copies necessary to read this
document
You may print a single copy of this material for
personal use
You must not change any of this material or remove
any part of any copyright notice
You must not distribute this material in any shape or
form
www.outsystems.com
Page 57