{
  "Dashboard_BranchOverview": {
    "layout":"form",
    "title":"",
    "caption":["","Content","Content"],
    "roles": {"*":"B"},
    "actions":"B",
    "menu":"Dashboard",
    "unbound":true,
    "oninit":"_this.oninit(xmodel);",
    "fields":[
      {"control":"html","value":"<div class='clear <%=model.class%>_content'></div>"}
    ]
  },
  "Dashboard_BranchOverview_Data": {
    "layout": "exec",
    "title": "Revision Overview Data",
    "actions": "U",
    "roles": {"*":"U"},
    "sqlexec": [
      "select 'branch' code_val, branch_desc code_txt, 1 cnt from {schema}.v_my_branch_desc where branch_id={schema}.my_current_branch_id() union all ",
      "foreach(%%%cms.branch_items%%%, union all , \"",
      "select '{item}' code_val, '{item_caption_2}' code_txt, count(*) cnt from {tbl_branch_item} where branch_id={schema}.my_current_branch_id() and {item}_id is not null",
      "\")"
    ],
    "fields": [
    ]
  }
}