AnsweredAssumed Answered

Get user default team from js via object

Question asked by Autchara Chaiprom on Sep 25, 2017
Latest reply on Oct 16, 2017 by Autchara Chaiprom

Hi ,

 

How can I get user default team from js via object?

I can get id from user object but for team, there are contain all of team of this user no clue for get default team.

 

./custom/clients/base/view/team-view.js

({
    className: 'my-view tcenter',
    initialize: function(options) {
        this._super('initialize', [options]);
        myData=new Object();
        myData.userID = app.user.id;
        this.myData = myData;
    }
})

where to display ./custom/clients/base/view/team-view.hbs

 

 

Data I can get from app.user

Sequence doesn't matter.

 

Could you please suggest me?

Sugar 7.9.1.0 Pro

Thanks,

M

Outcomes