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:
- /*
- This is a sample function. It will display the item details.
- */
- headerData = List();
- headerData.add({"key":"name","value":"Name"});
- headerData.add({"key":"account_name","value":"Account Name"});
- headerData.add({"key":"status","value":"Status"});
- headerData.add({"key":"rate","value":"Rate","align":"right"});
- details = Map();
- details.put("name",{"value":item.get("name"),"isExternal":true,"link":"https://inventory.zoho.com/app#/contacts/" + item.get("item_id")});
- details.put("account_name",{"value":item.get("account_name")});
- details.put("status",item.get("status"));
- details.put("rate",item.get("rate"));
- listData = List();
- listData.add(details);
- resultMap = Map();
- resultMap.put("header_context",headerData);
- resultMap.put("data",listData);
- 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:
- header_context
- data
- name
- value
- isExternal
- 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