The Simple Form object allows you
to optimize data retrieving process when you need to display values
from only one row in a query.
About this task
You can put several Label objects
on a Simple Form to display values from different
cells of the specified query row.
To insert a Simple Form:
- Double-click the Simple Form object
in the Layouts palette of the Palette view.
- In the Simple Form Wizard, navigate
to the table or query that will provide data for the Simple Form layout
and click Finish.
The Simple
Form Wizard closes and the Simple Form object is
placed on the scene.
- Add required Label objects to the Simple
Form layout.
- In the Project Explorer view,
navigate to the Simple Form layout that you
inserted.
- In the Palette view, expand Primitives and
select Label.
- Drag the Label object to the Level1 node
under Simple Form layout in the Project
Explorer view.
- With the help of Expression Designer,
specify the value to display in each Label object.
- In the Project Explorer view,
select the Label object you added.
- In the Properties view, double-click
the Text property value.
- In the Expression Designer window,
replace default text with the name of the column that contains the
value you want to display. For this, expand and select the required column.
Note: [Query
name] stands for the name of the query or table that you
specified for the Simple Form layout.
- Click OK to close the Expression
Designer window.
The Simple Form layout with all required
labels is added to the scene. You can check the result in Runtime
mode.