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