jsharmony-factory
Version:
Enterprise framework for jsHarmony
46 lines • 2.49 kB
JSON
{
"Dev/CustMenuRole_Listing": {
"source_files_prefix":"Dev_CustMenuRole_Listing",
"layout":"grid",
"title": "Menu Privileges: <#=bcrumbs.menu_desc#> (C<#=data.menu_id#>)",
"table":"{schema}.v_cust_menu_role_selection",
"actions":"BU",
"breadcrumbs":{
"sql": ["select menu_desc from {schema}.menu__tbl ",
" where menu_id=@menu_id"],
"sql_params": ["menu_id","menu_id"]
},
"caption":[0,"Item","Items"],
"sort":[{"cust_role_seq":"asc"},{"cust_role_name":"asc"}],
"menu":"dev",
"grid_expand_search": 1,
"rowlimit":500,
"grid_rowcount":1,
"reselectafteredit": "row", "comment1":"row, or blank",
"newrowposition": "last", "comment2":"first or last",
"commitlevel": "cell", "comment3":"cell, row, page, or none",
"validationlevel": "cell", "comment4":"cell, or row",
"hide_system_buttons" : ["export"],
"buttons": [
{"name":"selectAll","link":"js:jsh.App[modelid].SelectAll();", "icon": "ok", "text": "Select All", "actions": "U" },
{"name":"deselectAll","link":"js:jsh.App[modelid].DeselectAll();", "icon": "cancel", "text": "Deselect All", "actions": "U" }
],
"oninit": "jsh.App[modelid].oninit(xmodel);",
"oncommit": "jsh.App[modelid].oncommit();",
"fields":[
{"name":"cust_menu_role_selection","type":"smallint","actions":"BU","caption":"Select","control":"checkbox",
"controlparams":{"value_true":"1","value_false":"0","value_hidden":""},"captionstyle": "text-align:center;"},
{"name":"cust_role_name","type":"varchar","length":16,"actions":"B","datalock":{"cust_id":"cust_id"},"control":"label","key":1,
"caption":"Role"},
{"name":"new_menu_id","type":"bigint","actions":"BU","control":"hidden","captionstyle":"display:none;","cellstyle":"display:none;",
"sqlselect":"@menu_id"},
{"name":"menu_id","type":"bigint","actions": "B","control": "hidden","key":1},
{"name":"cust_role_seq","type":"int","actions": "B","control": "label",
"validate":["IsNumeric:true","IsDecimal:0","MinValue:0"],"cellstyle": "text-align:right;",
"sqlsort":"(coalesce(coalesce(cust_role_seq,cust_role_id),0))",
"caption":"Seq","captionstyle": "text-align:right;"},
{"name":"cust_role_desc","type":"varchar","length":"255","actions":"B","control": "label",
"validate":["Required"],"caption":"Description"}
]
}
}