How To : Adding a Connection

Page Status: Beta

Back to Concepts and HOW TOs

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:

  1. Right-click on the class and select Add Connection.
  2. 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
  3. Click OK.
  4. 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:

  1. In the Design Eidtor, select the control you want to bind.
  2. 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.
  3. 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:

  1. Select the connection.
  2. Click the Delete icon (red X) at the top of the Solution Detail.

[edit] Error Handling


[edit] Examples

 

[edit] Next Steps


[edit] Tags

    Copyright © 2005 - 2007 Bungee Labs. All rights reserved.