Hiring tutorial: Create the coach view for position data
Hiring tutorial > Create the user interface >
In this lesson, you create the coach view that displays position data, such as the position type and title.
This lesson is similar to the previous lesson. It provides the information you need to construct the coach view but does not provide the detailed steps. For detailed steps, see Create the coach view for the position request data.
Procedure
- Create a coach view and name it Position CV.
- Bind the coach view to business data:
- Select the Variables tab.
- Add the
Position
variable as the business data variable and set its type to the Position business object.
- Add a configuration option and rename it to Requisition. Set its type to
Requisition
.
- Click the Layout tab and then, from the palette, add a Panel to the layout canvas and rename it to Position data.
- Drop the following controls onto the Drop additional content here area of the position data section.
- Single select
- Single select
- Text
- Date Time Picker
- Edit the properties of the first single select control.
Property Value General > Label Position type General > Binding Position.positionType
Configuration > Items > Item lookup mode Items From Service
Configuration > Items > List items service Populate PositionTypeList
Visibility > Visibility Required
- Edit the Populate PositionTypeList service flow
Property Value populatePositionTypeList > Script tw.local.results = new tw.object.listOf.String();
tw.local.results[0] = "New";
tw.local.results[1] = "Existing";
tw.local.results.listAddSelected(0);populatePositionTypeList > Overview > Ajax Access Allow calls from all users. - Edit the properties of the second single select control.
Property Value General > Label Location General > Binding Requisition.location
Note: This is the configuration option that you created earlier to have access to the requisition data.Configuration > Items > Item lookup mode Items From Service Configuration > Items > List items service Populate LocationList
Visibility > Visibility Required
- Edit the Populate LocationList service flow
Property Value populateLocationList > Script tw.local.results = new tw.object.listOf.String();
tw.local.results[0] = "Atlanta";
tw.local.results[1] = "Boston";
tw.local.results[2] = "Chicago";
tw.local.results[3] = "Cincinati";
tw.local.results[4] = "Dallas";
tw.local.results[5] = "Denver";
tw.local.results[6] = "Des Moines";
tw.local.results.listAddSelected(2);populateLocationList > Overview > Ajax Access Allow calls from all users. - Edit the properties of the text control:
Property Value General > Label Title General > Bindin Position.jobTitle
- Edit the properties of the date time picker control:
Property Value General > Label Starting date General > Binding Requisition.date
Visibility > Visibility Required
Your diagram matches the following image:
- Save your work.
Summary
You created the Position CV coach view.
In the next lesson, you create the coach view for person data.