Example: showing the label of a complex view
This example shows how to show the label of a complex view in the page or view that
contains it.
When you add simple views to a page 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 page, 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 the page and add
My Complex CVto it. The view label is not visible at design time or 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 the page in the human service, the view label is now visible.
- 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 gave it inMy Coach. The view label is now visible both at design time and at run time.
- Open