Hello,
I would just like to know the code that is needed to deault the opportunity section to display in Kanban view. Kanban is a third party add-on, but I am sure there is some kind of this.set method that will allow me to set the section view type.
Thanks!
Like
You'll need to figure out what the view name is for this add-on, then you can set it using the following (this is setting the analytics view):
var viewName = "AnalyticsDataView"; this.setActiveView(viewName, false);
There's a few places that would be ideal to set this, BaseSectionV2 has a function called initDataViews where it reads the "saved" view for the current user and then sets it (so it remembers what view you had selected last and sets it again when you return). You could either override that, call the parent and then do your custom set of the view. Or, you could just override the function getActiveViewNameFromProfile that retrieves the saved (last used) view and always return the name of the kanban view.
Ryan