Example: showing the label of a complex view
This example shows how to show the label of a complex view in the coach or view that contains it.
When you add simple views to a coach or to another view, you automatically see their label at design time and at run time. This is not the case for complex views, which contain multiple views. When you add complex views to a parent view or coach, there is nowhere to show their labels by default. However, you can still show their labels by using the label general configuration option.
In this example, you create the My Complex CV view with two text views and a
text area view. You then modify it so that you can see its label at run time. The example uses a
client-side human service and views.
- Create a view that is called My Complex CV and add two text views and a text area view to it. You can use default values for the views.
- Create a client-side human service that is called My
Human Service.

- Open
Coachusing the default option and addMy Complex CVto it. The following table showsMy Complex CVwithin a coach at design time and at run time. In both cases, you cannot see the label for the view:My Complex CVin a coach in the Process DesignerMy Complex CVat run time

- To make the view label visible at design time:
- Open the
My Complex CVview. - In the Overview page, select Supports a Label.
- Click Save or Finish Editing.
- If you open
My Coachin the human service, you can now see the label forMy Complex CV.
- Open the
- To make the label visible at run time:
- Open the
My Complex CVview. - In its layout, add an output text view.

- In the General properties of the output text view, click
for the Label field and then clickSelect. In
the window that opens, expand General Options and then select
@label (String).Using the label of the output text to display the view name means that, at run time, the name is styled as a label. If you instead set the binding to display the view, at run time, the name is styled as normal text.
- In the Visibility properties of the output text
view, click
for the Visibility field and then
clickSelect. In the window that opens, expand General
Options and then select @labelVisibility (String).
- Click Save or Finish Editing.
- Open the
- Test that you have bound the view label:
- Open
My Human Serviceand openMy Coach. - Change the label of
My Complex CVto My Complex CV Label. - Click Save or Finish Editing.
- Run the human service.
My Complex CVnow shows the label that you give it inMy Coach. The following table shows My Complex CV at design time and at run time.My Complex CVin a coach in the Process DesignerMy Complex CVat run time

- Open