< Previous | Next >

Create the coach view for position data

In this lesson, you create the coach view that displays position data, such as the position type and title.

Before you begin

You must have the Position business object because the coach view in this lesson binds to the Position business object. If this business object is not already created, see Hiring tutorial: Create business objects.

About this task

The Hiring tutorial: Plan the user interface lesson identified that the My Hiring Sample process can use a set of coach views. The following table lists these coach views and their implementation names:
Label Name
Position data Position CV
Job requisition data Requisition CV
Person data Person CV
This lesson teaches you how to create the position data coach view, which is called the Position CV. If you want more information, see the equivalent steps in Hiring tutorial: create the coach view for job requisition data.

The Position CV coach view consists of a horizontal section that provides the title for the form. Inside the horizontal section, you use a vertical section to create a column. The title of the vertical section is the title for the column. The column contains two stock controls, which are also coach views.

Layout of the Position CV coach view

The following table lists the contents of the Position CV coach view, along with their bindings or configuration options. You can use this information to create the coach view or use the steps in the procedure.
Name Type of control Binding Configuration options
Position data Vertical section Position None
Position type Select None Selected Item: Position.positionType
Tip: You assign the selection service in a later lesson. Use the default service for now.
Job title Text Position.jobTitle None

Procedure

Create the Position CV coach view:

  1. Create a coach view and name it Position CV.
  2. Bind the coach view to business data:
    1. Select the Variables tab.
    2. Add the Position variable as the business data variable and set its type to the Position business object.
  3. Add the PositionList1 configuration option. For now, leave the type as Object and the variable type as String. You change the type to Service and specify the service in Hiring tutorial: create Ajax services.
  4. Click the Layout tab and then, from the palette, add a vertical section to the layout canvas and rename it to Position data.
  5. Bind the vertical section to the Position business object.
  6. Add the following controls to the vertical section:
    Stock control type Label Binding
    Select Position type None
    Text Job title Position.jobTitle
  7. Select the Position type control and open its configuration properties. Set the Selected Item to Position.positionType. You created the Position CV coach view.
  8. Save your work.

Lesson checkpoint

You created the Position CV coach view.

In this lesson, you learned
  • How to create the UI for the form as a coach view
  • How to configure other controls with data

In the next lesson, you create the coach view for person data.

< Previous | Next >