How To : Adding a Connection
Page Status: Beta
Contents |
[edit] Description
This document describes how to add a connection to a class, either directly, or by binding a control.
[edit] Prerequisites
Understanding Connections
Understanding Adapters
[edit] Adding a Connection Directly to a Class
[edit] Procedure
To add a connection to your class:
- Right-click on the class and select Add Connection.
- In the dialog box that's displayed, choose the connection adapter whose interface you want your connection to implement by selecting the Dependencies tab, then chooseing BungeeRuntime > ControlAdapter, then selecting the desired ConnectionAdapter
- Click OK.
- The connection is added to the class, selected, and displayed in the Solution Detail.
[edit] Adding a Connection by Binding a Control
[edit] Procedure
To add a connection by binding a control to your class:
- In the Design Eidtor, select the control you want to bind.
- On the upper right of the control, click the green arrow, then click one of the Bind options, if any are available. Not all controls use connections.
- When the connection opens in the Design Editor, you can edit the connection by assigning a value from your model to a field of the connection, or you can add Model or View code to the connection by clicking the M or V and then adding any Bungee Logic you need.
[edit] Deleting a Connection
[edit] Procedure
To delete a connection from your class:
- Select the connection.
- Click the Delete icon (red X) at the top of the Solution Detail.
[edit] Error Handling
[edit] Examples
[edit] Next Steps