This topic describes how to add necessary widgets to to the comment box to display a text entry field and a save button.
- In the Nav tree, drag your StringWritable point onto the canvas in your Px page.
- In the Make Widget wizard, do the following:
- Select
From Palette as the source of the widget.
- In the drop-down list, select the
kitPx palette.
- In the
kitPx palette select a SetPointFieldEditor widget.
- Click the OK button.
- In the PxEditor canvas, double-click on the SetPointFieldEditor widget to open the Properties window.
- Configure the
Set Point Binding ord property to the in16 slot and click OK.The text entry field displays on the canvas.
- In the Palette side bar, open the kitPx palette.
- Drag a Save button widget to a position near the text entry field on the canvas.
- Design your comments box as desired, for example, you could enclose the comments box and Save button in a Border pane and add a Label as shown below.
- To save your changes, click the Save icon (
) in the toolbar.
- To test the comment box, switch to View mode by clicking the Toggle View/Edit Mode button (
), type some text in the text entry property and click the Save button. Entering text activates the
Save button. Your comments box should resemble the one shown here:
- In the Nav tree, expand the station’s History node, locate the StringWritable history and double-click to open the History Table view.
The History Table view contains a record of each saved text entry.