Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

How to bind UI controls to Data Properties
xomega
#1 Posted : Monday, September 24, 2012 7:17:33 PM(UTC)
xomega



When generating search forms or generating object details forms based on the presentation layer data objects defined in the model, the generated forms will already have all the controls properly bound to the corresponding data properties. However, if you want to customize the generated data objects by adding new data properties, then you may need to be able to manually add controls to the form and bind them to the corresponding data properties. This also applies if you're building your form from scratch and need to bind the controls to the underlying data properties.

Binding a UI control to a Data Property is extremely easy with Xomega Framework in any of the supported UI technologies. It generally boils down to the following simple steps:
  1. Set a special attribute to the data property name in the object.
  2. If you want to bind to a data property that is defined on a child object of the current context object, then you can set a special attribute to indicate a child object's name or a dot-delimited path to it.
  3. Optionally set a special attribute to indicate the label element associated with this control. This will allow Xomega Framework to show or hide the label along with the control and possibly highlight the label for required properties.

The following topics detail these steps for each individual UI technology.
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.