jsharmony-tutorials
Version:
jsHarmony Tutorials
23 lines (22 loc) • 1.13 kB
JSON
{
"layout": "form",
"title": "Customer Information",
"table": "cust",
"actions": "BIUD",
"roles": {"C_B":"B","C_X":"*"},
"caption": [ "", "Customer", "Customers" ],
"menu": "clients",
"popup":[1000,700],
"fields": [
{"name":"cust_id", "type": "bigint", "actions":"B","key": 1},
{"name": "cust_name","type": "varchar","length": 50,"actions": "BIU","nl": 1,"control": "textbox",
"caption": "Customer Name","captionstyle": "width:120px;text-align:right;"},
{"name":"cust_sts","type":"varchar","length":8,"actions":"BIU","control":"dropdown","sample": "Active",
"lov": { "code": "cust_sts" },"validate":["Required"],"default":"ACTIVE",
"caption": "Status","nl":1},
{"name":"cust_ein","type":"encascii","length":16,"actions":"BIU",
"validate": ["IsEIN","MinLength:9","MaxLength:9","Required"], "password": "cust_ein","hash": "cust_einhash","format": "ein",
"control":"textbox_M","sample":"999-99-9999","caption":"EIN","captionstyle":"width:102px;text-align:right;"},
{"name":"cust_einhash","type":"hash","length": 20,"salt": "cust_einhash"}
]
}