directory-backbone-topcoat-require icon indicating copy to clipboard operation
directory-backbone-topcoat-require copied to clipboard

rendering the 'reports list' is not OK when using the json storage

Open ghost opened this issue 11 years ago • 2 comments

When I use the memory storage , there is no issue.. people can see the manager and the list of user reporting to him..

but when I use the json storage with same data on the node.js server sent (checked the json returned ), then people can see ONLY the manager.... not the list of people reporting to him...

    render: function () {
        this.$el.html(template(this.model.attributes));
        this.model.reports.fetch();
        this.listView = new EmployeeListView({collection: this.model.reports, el: $(".scroller", this.el)});
        return this;
    }

ghost avatar Oct 04 '13 12:10 ghost

I wish I would have seen this yesterday as I had to resolve the same issue. +1 to this solution. Works with json or jsonp.

bmhdev avatar Oct 23 '13 15:10 bmhdev

I'm still getting "Uncaught ReferenceError: reports is not defined" afer using the above code in directory-backbone-topcoat-require-master\js\app\models\jsonp\employee.js . Am i missing something?

tconley avatar Oct 30 '13 03:10 tconley