UNPKG

jsharmony-tutorials

Version:
14 lines 628 B
{ "ModelSQL_Grid_sqlselect_sort": { "table":"cust", "layout":"grid", "caption":["Customer","Customers"], "sqlselect":"select cust_id, cust_name,cust_sts from cust where %%%SQLWHERE%%% %%%DATALOCKS%%% %%%SEARCH%%% order by (case when cust_sts='ACTIVE' then 0 else 1 end),%%%SORT%%% limit %%%ROWCOUNT%%% offset %%%ROWSTART%%%", "rowclass": "<#-xejs.case(datarow['cust_sts']=='ACTIVE','xgrid_row_highlight','xgrid_row_disabled')#>", "fields":[ {"name":"cust_id","caption": "ID"}, {"name":"cust_name","caption":"Customer"}, {"name":"cust_sts","caption":"Status"} ] } }