Skip to Content

Introduction to Vinyl 3.3: UI Enhancements and Reporting

UI / UX Enhancements

In this section we will review some methods that can be used to improve the overall look and feel of an application. The first feature we review is control sets, which are groups (or containers) that can be used to group together similar information to make it more easily understood or interpreted by the user.

Add a Control Set to the Product Page

First, we create a control set on the Product page for Price and Unit of Measure. Then you will add a similar control set to the Products page.

An image showing the created control set on the Product page:

price uom control set on product page

  1. Navigate to the application view Product page.

  2. Go to the Action Drawer > Live Designer.

  3. Select the Controls button for the Product panel.

  4. Click the + Control button.

  5. Set the Control Type to Group.

  6. Assign the Name as Price / UOM.

  7. Set the Layout Type to Side by Side.

  8. Confirm Sizing Method is set to Compress.

  9. Click the Next button.

  10. Confirm and click the Finish button.

  11. Click the All Controls tab.

  12. Set the Parent value for Price to be Price / UOM (Group).

  13. Set the Parent value for Unit Of Measure to be Price / UOM (Group).

  14. Change the Order value for Unit of Measure to 35, so that Price will be displayed before UOM.

  15. Change the Order value for Is Active to 80, so that Is Active will be displayed after Price / UOM.

  16. Close the Live Designer and confirm updates.

Hands-on: Add a Control Set to the Products Page

Following the process used to add a control set to the Product page, add a Price / UOM Control Set to the Products page.

Configure Controls as Required

In this section we will step through how you can manually set a control to be Required in order for a record to be saved. Required controls are indicated in Vinyl by the appearance of a blue vertical bar appearing on the left side of the corresponding field. For this exercise we will use the Product page.

The Product page with controls set to Required:

product page with controls set to required

  1. Navigate to the Product page.

  2. Go to Action Drawer > Live Designer.

  3. Select the Product panel.

  4. Click the All Controls tab.

  5. Open the Product control detail.

  6. Click the Position & Width tab.

  7. Set the Edit Options to Required.

  8. Click the Save button.

  9. Repeat the steps to set all controls on the Product panel to be Required.

  10. Close the Live Designer and confirm the updates by clicking the Edit button and reviewing the control appearance.

Add Control Sets to the Customers Page

In this section we will move the City, State, and Postal Code controls into a control set for the Customers page.

  1. Navigate to the Customers page.

  2. Go to the Action Drawer > Live Designer.

  3. Select the Customers panel.

  4. Click the All Controls tab.

  5. Click the + Control button.

  6. Set the Control Type to Group.

  7. Assign the Name as City State Postal Code.

  8. Click the Next button.

  9. Confirm and click Finish.

  10. Set the Parent value for City to be City State Postal Code (Group).

  11. Set the Parent value for State to be City State Postal Code (Group).

  12. Set the Parent value for Postal Code to be City State Postal Code (Group).

  13. Open the detail for City and set the Width value to be 20.

  14. Open the detail for State and set the Width value to be 6.

  15. Open the detail for Postal and set the Width value to be 9.

  16. Change the Order value for the City State Postal Code control set to 35, so that the information follows the Address on the application UI layer.

  17. Close the Live Designer and confirm the updates.

Hands-on: Add Additional Control Sets

Add a City State Postal Code control set to the Customer, Orders, and Order pages.

Change Products Panel Type to Tile

  1. Navigate to the Products page.

  2. Go to the Action Drawer > Live Designer.

  3. Select the Products panel.

  4. Set the Panel Type to Tile.

  5. Click the Save button.

  6. Click the All Controls tab.

  7. Open the detail for the Price / UOM control set.

  8. Set Group Borders to Hidden.

  9. Open the detail for Price.

  10. Select the Label tab.

  11. Set Label Visibility to Hidden.

  12. Click the Save button.

  13. Open the detail for Unit of Measure.

  14. Select the Label tab.

  15. Set Label Visibility to Hidden.

  16. Click the Save button.

  17. Close the Live Designer and confirm the updates.

Add a Sort Direction by Ascending

In this section we step through how to apply a Sort on a control. Here we will sort ascending on the Product control so that the Products displayed sort alphabetically from A to Z, based on the Product value.

The Products page now sorted alphabetically on Product:

products page now sorted alphabetically on product

  1. From the Products page navigate to Action Drawer > Live Designer.

  2. Select the Product control from the Products panel.

  3. Click the Position & Width tab.

  4. Set the Sort Direction to ASC.

  5. Click the Save button.

  6. Close the Live Designer and confirm the updates.

Add a Google Map to Customer

In this section we will add a Google map to the Customer page to enhance the information being displayed to an app user.

Note

Google Maps requires valid address information to display the map correctly.

  1. Navigate to the application view Customer page.

  2. Go to the Action Drawer > Live Designer.

  3. Click the + Panel button.

  4. Select the Form tile.

  5. Click the Next button.

  6. Select the Customer (Business Object).

  7. Click the Next button.

  8. Select Choose Manually.

  9. Click the Next button.

  10. Review and click Finish.

  11. Select the new Customer2 panel.

  12. Modify the Panel Name to be Map.

  13. Click the Save button.

  14. Click the + Control button.

  15. Set the Control Type to Template.

  16. Assign the name as Map.

  17. Set the template to Google Maps Map View By Address Interactive.

  18. Click the Next button.

  19. Review and click Finish.

  20. Click the Binding button.

  21. Confirm there are binding records that map the Address, City, and State from the Template Parameter to the Value or Name.

  22. Click the X to exit out of the Bindings screen.

  23. Select the Customer panel.

  24. Set the page size Width value to Large.

  25. Click the Save button.

  26. Close the Live Designer and confirm the updates.

Additional UI / UX Improvements

In this section we will step through a few additional UI/UX improvements that can be made to our Global Imports app. First, we will reorder the Is Active control on the Product page. This control should typically be displayed as the last value on a screen. Second, we will take a look at using the AutoComplete control type, which gives users the option of completing syntax, text, or values by selecting from a dropdown menu.

  1. Navigate to the application view Customer page.

  2. Go to Action Drawer > Live Designer.

  3. Select the Customer panel.

  4. Select the All Controls tab.

  5. Open the details for the State control.

  6. Change the Control Type value to AutoComplete.

  7. Click the Save button.

  8. Close the Live Designer and confirm the updates by testing adding a new Customer record.

Reporting

Now that we have the foundation of our application developed, we will look at some reporting options. Vinyl has intuitive options and shortcuts available to quickly make reports available in an app.

Create a Products by Category Chart

A chart showing Products by Category:

products by category chart

  1. From the application navigate to Action Drawer > Design Center.

  2. Click the + Page button.

  3. Enter a Name for the page. For example: Products by Category.

  4. Click the Next button.

  5. Select Reports as the menu.

  6. Click the Next button.

  7. Select Full Page as the layout.

  8. Click the Next button.

  9. Confirm and click the Finish button.

  10. Click the Proceed button.

  11. Select the Chart report option.

  12. Click the Next button.

  13. Click the + New Source button.

  14. Assign the Name as Product (Count By Category).

  15. Set the Chart Type to Column.

  16. Set the Target to Product.

  17. Click the Create button.

  18. Select the CategoryID and ProductID from the Product table.

  19. Click the Columns tab.

  20. Confirm that CategoryID has Usage Type set to Category.

  21. In the Column or Expression field for ProductID, wrap the product ID with the Count() expression so it appears as Count(ProductID):

    count expression around the product id column

  22. Click the Proceed button.

  23. Confirm that Count(ProductID) has Usage Type set as Value and Alias is Products.

  24. Click the Proceed button.

  25. Select Product (Count by Category).

  26. Click the Next button.

  27. Confirm and click the Finish button.

Hands-on: Create a Customers by State Chart

Following the process used to create the Products by Category chart, create a Customers by State chart:

customers by state chart

Create a Customer Map

In this step, create a page named Customer Map that connects to the Reports menu. Directions for completing the Map panel are below.

customer map

  1. From the application, navigate to Action Drawer > Design Center.

  2. Click the + Page button.

  3. Enter a name for the page. For example: Customer Count By State.

  4. Click the Next button.

  5. Select Reports as the Menu.

  6. Click the Next button.

  7. Select Full Page as the layout.

  8. Click the Next button.

  9. Confirm and click the Finish button.

  10. Click the Proceed button.

  11. Select the Map panel type.

  12. Click the Next button.

  13. Click the + New Source button.

  14. Assign the name as Customer (Count By State).

  15. Set the purpose as Map.

  16. Set the target to Customer.

  17. Select the State and then CustomerID from the Customer table.

  18. Click the Columns tab.

  19. Confirm the State control has Usage Type set to Category.

  20. In the Column or Expression field for CustomerID, wrap the customer ID with the Count() expression so it appears as Count(“C.”CustomerID).

  21. Click the Proceed button.

  22. Confirm that Count(“C.”CustomerID) has Usage Type set as Value and Alias as Customers.

  23. Click the Proceed button.

  24. Select the Customer (Map) business rule.

  25. Click the Next button.

  26. Click the Finish button.

  27. Confirm you now see a Customer Map page with a map panel displaying the customer count by state.

Dashboard

In this section we will create a Dashboard page in our Global Imports application. Dashboards are often used in Vinyl apps to convey key performance indicator (KPI) data to management and executives. The dashboard we build will display the customer map linked to a list of customers, a corresponding list of orders below the list of customers, and product by category.

Note

In this scenario we are repurposing charts that have already been built and validated.

Create the Dashboard Panels

  1. From the application, navigate to Action Drawer > Design Center.

  2. Click the + Page button.

  3. Assign the Page Name as Dashboard.

  4. Click the Next button.

  5. Select Home as the menu.

  6. Click the Next button.

  7. Select the 2x2 tile as the Multiple Panel Layout option.

  8. Click the Next button.

    2 by 2 grid panel to select for page layout

  9. Confirm and click the Finish button.

  10. Click the Proceed button in the top left grid.

  11. Click to select the Map tile.

  12. Click the Next button.

  13. Select the Customer (Map) business rule.

  14. Click the Next button.

  15. Confirm and click the Finish button.

  16. Rename the Panel Name to Map.

  17. Click the Proceed button in the top right grid.

  18. Click to select the Tile panel layout.

  19. Click the Next button.

  20. Select the Customer business object.

  21. Click the Next button.

  22. Select Choose Manually.

  23. Click the Next button.

  24. Select the following controls to add:

    1. Customer

    2. Address

    3. City

    4. State

    5. Postal Code

  25. Click the Next button.

  26. Confirm and click the Finish button.

  27. For this panel to be connected to the customer map, we need to add binding information. Open Live Designer and select the Customers panel.

  28. Click the Bindings button from Parent Panel & Binding.

  29. Click the + Binding button.

  30. Set the Child Column to State.

  31. Set the Parent Column to State.

  32. Click the checkmark icon to save.

  33. Click the X to exit the Binding Columns screen.

  34. Click the Proceed button in the bottom right grid.

  35. Select the Grid tile.

  36. Click the Next button.

  37. Select the Order (Business Object).

  38. Click the Next button.

  39. Select Choose Manually.

  40. Click the Next button.

  41. Select the Address and OrderDate controls.

  42. Click the Next button.

  43. Confirm and click the Finish button.

  44. Confirm Parent Panel & Binding is set to Customers (Tile).

  45. Click the Bindings button.

  46. Confirm a binding record exists mapping CustomerID to CustomerID.

  47. Click the X to exit the Binding Columns screen.

  48. Click the Proceed button in the bottom left grid.

  49. Select the Chart panel type.

  50. Click the Next button.

  51. Select the Product (Count by Category).

  52. Click the Next button.

  53. Confirm and click the Finish button.

  54. Review the Dashboard page.

Dashboard Improvements

Looking at the current Dashboard page, there are a few improvements we can make:

  • Remove edit, delete, and create capabilities so that information is read-only.

  • Reposition the Dashboard button to be at the top.

Dashboard page from the Global Imports app:

dashboard page from global imports app

  1. From the Dashboard page design view, click to select the Orders panel.

  2. Click the Update Methods tab.

  3. Set the Edit method to No.

  4. Set the Insert method to No.

  5. Set the Delete method Supported to No.

  6. Click the Save button.

  7. Return to the application home page, refresh the browser, and confirm the updates.

  8. Return to the Dashboard page design view.

  9. Click to select the Orders panel.

  10. Click the Update Methods tab.

  11. Set the Link to Page to be Order.

  12. Click the Save button.

  13. From the application view home page, go to Action Drawer > Design Center.

  14. Click the Menus button.

  15. Click the pencil edit icon for the home page menu.

  16. Change the Order for Dashboard to 5.

  17. Return to the application home page, refresh the browser, and confirm the updates.