Difference between revisions of "Understanding Data Binding"

From Lianjapedia
Jump to: navigation, search
(Lianja UI Framework)
Line 1: Line 1:
 
+
<div style="margin-bottom:5px;padding:5px;border:1px solid orange;border-left:5px solid orange;background:#fff8dc;vertical-align:middle;position:relative;">
 +
[[File:bm-noteicon.png|top|40px|link=]]<div style="position:absolute;top:3px;margin-bottom;bottom:5px;margin-left:50px;"><b> Before you start</b>
 +
To understand this article it is recommended that you are comfortable with JavaScript or Lianja/VFP.
 +
</div>
 +
<span style="height:6px;"> </span>
 +
</div>
 
=Formitem Attributes=
 
=Formitem Attributes=
  

Revision as of 12:19, 28 November 2017

Bm-noteicon.png
Before you start

To understand this article it is recommended that you are comfortable with JavaScript or Lianja/VFP.

Formitem Attributes

Form, Canvas and Grid sections are typically bound to a table in a database. The table specified can be a native Lianja table or a “Virtual Table”.

Each formitem (Field or Gadget) can be bound to a table.column in the “Data source” attribute.

Typically the database, table and “Data source” are set automatically when you drag a table or column onto the page.

As you navigate between data the “Data source” is automatically updated in the UI.

As you edit data the “Data source” is automatically updated. There is no coding required to accomplish display and editing of fields or gadgets.

Lianja UI Framework

The Lianja UI Framework is a feature rich application framework used to build custom UI elements for the Desktop, Web and Mobile devices. The classes, methods and properties in the framework are compatible with those in Visual FoxPro 9.0 but have been extensively extended to make it easier to build UIs for Apps that will run on the desktop, web and mobile devices. In particular, it has complete Layout Manager support, and provides the ability for each UI component to be skinned using CSS attributes (the Stylesheet property).

You use Lianja/VFP (Visual FoxPro compatible), JavaScript, TypeScript, Babel, Python or PHP with the Lianja UI Framework to build Custom Sections and Custom Gadgets. All Lianja UI Framework Classes provide integrated data binding to the underlying Lianja embedded database (the Controlsource property).


tb = createObject(“textbox”)
// table.column
tb.controlsource = “customer.lastname”
// a function call
tb.controlsource = “myfunc()”
// a macro expression
tb.controlsource = “{expression}”