jsharmony-tutorials
Version:
jsHarmony Tutorials
16 lines • 817 B
JSON
{
"table":"all_controls",
"layout":"form",
"onecolumn":true,
"caption": ["Item", "Items"],
"popup":[900,400],
"sqlselect": "select x_primary,x_textbox from all_controls where x_primary=@x_primary",
"fields": [
{"control":"html","value":"<h3>Bound Field</h3>","block":true},
{"name":"x_textbox", "caption": "x_textbox"},
{"control":"html","value":"<h3>Unbound Field</h3>","block":true},
{"name":"field1","unbound":true, "control":"textbox" },
{"control": "button", "value": "Set Value", "onclick":"xmodel.set('field1', 'New Value')" },{"control": "html", "value": "xmodel.set('field1', 'New Value')"},
{"control": "button", "value": "Get Value", "onclick":"XExt.Alert(xmodel.get('field1'))" },{"control": "html", "value": "XExt.Alert(xmodel.get('field1'))"},
]
}