UNPKG

jsharmony-tutorials

Version:
50 lines (48 loc) 1.59 kB
{ "FormVirtual_Popup": { "layout": "form", "title": "", "caption":["","Status","Statuses"], "actions": "B", "unbound": 1, "roles": { "main": {"*":"*"} }, "css":".xbody_<%=model.class%> { display:block; padding-right:29px; }", "hide_system_buttons" : ["print","help"], "fields":[ {"control":"button","name":"showPopup","value":"Show Popup","onclick":"_this.showPopup_click();"} ] }, //Custom API Endpoint for getting list of customers and initial form data "FormVirtual_Popup_Get_Cust": { "layout": "exec", "title": "Select a customer", "actions": "U", "roles": { "main": {"*":"*"} }, "sqlexec": [ "select cust_id,cust_name,cust_sts from cust where cust_id=@cust_id;", "select code_val,code_txt from code_cust_sts where (code_end_dt is null or code_end_dt>datetime('now','localtime')) order by code_seq;" ], "sqltype": "multirecordset", "fields": [ {"name":"cust_id","type":"bigint","actions":"U","control":"hidden"} ] }, //Custom API Endpoint for updating customer status "FormVirtual_Popup_Update_CustSts": { "layout": "exec", "title": "Update customer status", "actions": "U", "roles": { "main": {"*":"*"} }, "sqlexec": "update cust set cust_sts=@cust_sts where cust_id=@cust_id", "fields": [ {"name":"cust_id","type":"bigint","actions":"U","control":"hidden"}, {"name":"cust_sts","type":"varchar","length":8,"actions":"U","control":"hidden"} ] } }