Create the application interface
Create a button for inserting data into the database, a button for querying the database, and a label that displays the query results.
- Create the Insert button:
- InProject view, expandUI.
- Right-clickMainWIndow (type)and select .
- Hover-over the button, select, and enterInsertButton.
- InProperties, setTexttoInsert Random Data.
- Create the Run Query button:
- Right-clickMainWIndow (type)and select .
- Hover-over the button, select, and enterRunQueryButton.
- InProperties, setTexttoDisplay Query in Label.
- Create the query result label:
- Right-clickMainWIndow (type)and select .
- Hover-over the label, select, and enterQueryResultLabel.
- InPropertiessetTexttoQuery Results....
- Arrange the interface elements.
![](/content/dam/dita/en/factorytalk-optix/1-10/_images/interact-with-database-design.png/_jcr_content/renditions/original)
Provide Feedback