|
|
Bungee Logic : Intrinsic : ModelFrom $1Table of contents
DescriptionEach control adapter contains two intrinsic functions associated with the adapter: Model and View. Use the Model function to add code to an adapter so that you can cause programmatic updates to your application's View (UI). This may sound contradictory, but the updates to the View are based on changes in your Model (application objects), hence this is Model code. Adding Model Code
VariablesModel functions contain two intrinsic variables:
ExampleThere is an example of Model code in Example 3 of the DynamicForm control documentation. The code (shown below) updates the View (the form displayed) based on changes to the Model (the value of a string field called formType). Based on the code in the Model function below, changes to the value of formType programmatically determine whether a "read-only" or "editable" form gets displayed to the user.
PropertiesGeneral Tab
Tags:
|