Add a text entry field and save button

This topic describes how to add necessary widgets to to the comment box to display a text entry field and a save button.
  1. In the Nav tree, drag your StringWritable point onto the canvas in your Px page.
  2. 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.
  3. In the PxEditor canvas, double-click on the SetPointFieldEditor widget to open the Properties window.
  4. Configure the Set Point Binding ord property to the in16 slot and click OK.
    The text entry field displays on the canvas.
  5. In the Palette side bar, open the kitPx palette.
  6. Drag a Save button widget to a position near the text entry field on the canvas.
  7. 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.
  8. To save your changes, click the Save icon (Image) in the toolbar.
  9. To test the comment box, switch to View mode by clicking the Toggle View/Edit Mode button (Image), 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:
    Image
  10. In the Nav tree, expand the station’s History node, locate the StringWritable history and double-click to open the History Table view.
    Image
The History Table view contains a record of each saved text entry.