jsharmony-factory
Version:
Enterprise framework for jsHarmony
66 lines • 3.69 kB
JSON
{
"Admin/Txt": {
"title":"Text Module",
"table":"{schema}.txt__tbl",
"actions":"BU",
"layout":"form",
"caption":[0,"Text Module","Text Modules"],
"menu":"Admin/Txt_Listing",
"breadcrumbs": { "parents": ["Admin/Txt_Listing"] },
"onload": "if(xmodel.controller.form.Data.txt_type.toUpperCase()=='HTML'){ jsh.$root('.txt_body.xelem'+xmodel.class).attr('id',xmodel.class+'_txt_body'); XExt.CKEditor(xmodel.class+'_txt_body'); }",
"fields":[
{"control":"html","value":"<script type='text/javascript' src='/js/ckeditor/ckeditor.js'></script>"},
{"name":"txt_id","type":"bigint","key": 1,"control":"hidden"},
{"name":"txt_process","type":"varchar","length":32,"actions":"B","validate":["Required"],
"control":"textbox_S",
"caption":"Process","captionstyle":"width:80px;text-align:right;"},
{"name":"txt_attrib","type":"varchar","length":16,"actions":"B","validate":["Required"],
"control":"textbox_S",
"caption":"Attribute","captionstyle":"width:98px;text-align:right;"},
{"name":"txt_type","type":"varchar","length":32,"actions":"B","control":"dropdown_S",
"lov": { "sql": "select code_val, code_txt from {schema}.code_txt_type order by code_seq,code_txt",
"blank": 1 }, "validate": ["Required"], "default": "HTML",
"caption":"Body Type","captionstyle":"width:98px;text-align:right;"},
{"name":"txt_desc","type":"varchar","length":255,"actions":"B","nl":1,
"control":"textarea","controlstyle":"width:590px;height:50px;",
"caption":"Description","captionstyle":"width:80px;height:35px;vertical-align:top;padding-top:3px;text-align:right;"},
{"name":"txt_title","type":"varchar","length":255,"actions":"BIU","nl":1,
"control":"textarea","controlstyle":"width:590px;height:35px;",
"caption":"Title / Subject","captionstyle":"width:80px;height:35px;vertical-align:top;padding-top:3px;text-align:right;"},
{"name":"txt_body","type":"varchar","length":99999,"actions":"BIU","nl":1,
"control":"textarea","controlstyle":"width:900px;height:500px;",
"caption":"Body","captionstyle":"width:80px;height:0px;vertical-align:top;padding-top:3px;text-align:right;"},
{"name":"txt_etstmp","type":"datetime","length":7,"actions":"B","nl":1,
"control":"textbox_tstmp",
"caption":"Entered"},
{"name":"txt_euser_fmt","type":"varchar","length":20,"actions":"B",
"sqlselect":"({schema}.my_db_user_fmt(txt_euser))",
"control":"textbox","controlstyle":"width:158px;","caption":""},
{"name":"txt_mtstmp","type":"datetime","length":7,"actions":"B",
"control":"textbox_tstmp",
"caption":"Last Updated"},
{"name":"txt_muser_fmt","type":"varchar","length":20,"actions":"B",
"sqlselect":"({schema}.my_db_user_fmt(txt_muser))",
"control":"textbox","controlstyle":"width:158px;","caption":"","eol":1}
],
"dberrors": [
[ "fk_txt_code_txt_type", "Incorrect Body Type" ],
[ "txt_code_txt_type_fkey", "Incorrect Body Type" ],
[ "unq_txt", "Duplicate Key (Process + Attribute)" ],
[ "txt_txt_process_txt_attrib_key", "Duplicate Key (Process + Attribute)" ]
]
},
"Dev/Txt": {
"inherits":"Admin/Txt",
"dev":1,
"actions":"BIUD",
"menu":"Dev/Txt_Listing",
"breadcrumbs": { "parents": ["Dev/Txt_Listing"] },
"fields":[
{"name":"txt_process","actions":"BIU"},
{"name":"txt_attrib","actions":"BIU"},
{"name":"txt_desc","actions":"BIU"},
{"name":"txt_type","actions":"BIU"}
]
}
}