{ 
  "FormSubform_Nested_Item": {
    "table":"item",
    "layout":"form",
    "onecolumn":true,
    "caption":["Equipment","Equipment"],
    "fields":[
      {"name":"item_code","caption":"Code"},
      {"name":"item_name","caption":"Name"},
      {"name":"cust_id","caption":"Customer","lov": { "sql": "select cust_id code_val,cust_name code_txt from cust order by cust_name" } },
      {"control": "subform","target": "FormSubform_Nested_Cust","actions":"BU"}
    ]
  },
  "FormSubform_Nested_Cust": {
    "table":"cust",
    "layout":"form",
    "onecolumn":true,
    "caption":["Customer","Customers"],
    "fields":[
      {"name":"cust_name","caption":"Name"},
      {"name":"cust_sts","caption":"Status"},
      {"control": "subform","target": "FormSubform_Nested_CustContact"}
    ]
  },
  "FormSubform_Nested_CustContact": {
    "table":"cust_contact",
    "layout":"grid",
    "caption":["Contact","Contacts"],
    "fields":[
      {"name":"cust_contact_name","caption":"Name"},
      {"name":"cust_contact_title","caption":"Title"},
      {"name":"cust_contact_email","caption":"Email"}
    ]
  }
}