Hi all,
I have a list of employees. Each employee can be associated with more than 1 departments.
I am able to show the list of employees using itemTpl. How do I show the department list?
I tried adding tpl for loop:
<tpl for="departments">{departments.deptName}</tpl> However that doesn't work.

My list is a list of
Code:
                     {                    xtype: 'list',
                    id: 'myList',
                    itemId:"myListId",
                    itemTpl: "<div ><table>" +
                        "<tr><td>Employee Name  </td><td>{empName}</td><td>Designation  </td><td>{designation}</td></tr>" +                                         
                        "<tr><td><tpl for="departments">{departments.deptName}</tpl>  </td></tr>" +
                        "</table></div>",
                    flex: 1,
                    store:{
                        id: 'myStore',
                        model:'myModel',
                        data: ''
                    },
                    width: '100%'
                }
Thanks