Missing documentation for "related lists"

Missing documentation for "related lists"

This question is related to both Zoho Books and Zoho Inventory.

Under settings you can add something called "related lists" to a resource, like items. When I do this I get some sample code of how this is supposed to be implemented:

  1. /*
  2. This is a sample function. It will display the item details.
  3. */
  4. headerData = List();
  5. headerData.add({"key":"name","value":"Name"});
  6. headerData.add({"key":"account_name","value":"Account Name"});
  7. headerData.add({"key":"status","value":"Status"});
  8. headerData.add({"key":"rate","value":"Rate","align":"right"});
  9. details = Map();
  10. details.put("name",{"value":item.get("name"),"isExternal":true,"link":"https://inventory.zoho.com/app#/contacts/" + item.get("item_id")});
  11. details.put("account_name",{"value":item.get("account_name")});
  12. details.put("status",item.get("status"));
  13. details.put("rate",item.get("rate"));
  14. listData = List();
  15. listData.add(details);
  16. resultMap = Map();
  17. resultMap.put("header_context",headerData);
  18. resultMap.put("data",listData);
  19. return resultMap;
But to my knowledge, other than this there is no official documentation and in lack thereof could you clarify what is the use of the following properties:
  1. header_context
  2. data
    1. name
      1. value
      2. isExternal
      3. link
Which of these are optional and which are required? What is their intended use and how will they play into "related lists"?

Many thanks,

Stefan