0 votes
1.3k views
in Coach Views by (340 points)
Hi everyone,

I'm using Ibm BPM 8.5.7 tab CV  (responsive tab CV ) and adding 3 tabs (like tab1 ,tab1,tab3 ) to it.while running CSHS by default first tab is focusing and loading (i.e tab1 is loading) but I want to load and focus 2nd tab (i.e tab2)by default while running CSHS.

Please let me know how to achieve this with responsive tabs.

Thanks in advance.

1 Answer

0 votes
by (16.3k points)
If you are using the spark toolkit, the binding of the tab control is the index of the tab starting with 0 if you set the binding to the desired value that tab will be selected, also you can change the selected tab by changing the binding value.
by (340 points)
Thanks for response #usabpm,
But we are not using spark UI ,please let me know any idea for 8.5.7 CSHS Responsive tabs.
by (16.3k points)
You are in a dicy situation, the responsive tabs is marked as a system toolkit and the helper code has references to the toolkit name and the zip file and .js file name in it so making a copy  and modifying will not be easy, If you have to do it I can give you a starting point you can try the exact change which needs to be made is as follows

find the following section in controls_en.min.js (inside controls.min.zip in script folder)

module.controller("tabs", ["$scope", "$element", "Coach", "$timeout", "coachUtils", function (a, c, d, e, f) {
            angular.extend(a, new d(a, c));
            a.watchOption("tabActiveColor", "primary");
            a.watchOption("tabInactiveColor", "default");
            a.watchOption("showBorder", !1);
            a.watchOption("selectedTabIndex", 0, , function (b) {
                a.setActiveTab(b, !0);
            });

and add the last line above for a selectedTabIndex watch which is currently not there, then add the exact same named config option to the copy tab you have created.

Then change the references to " responsive.coaches" in script coachViewHelper under coachview.helper.min.zip to point to the app which contains the copy of the tab control.

add both the above zip (controls.min.zip) files to the app containing the copy of the tab control, change the references to the controls.min.zip to point to the current application version of the zip file

Do not have sufficient time to give you a working example but I hope the pointers are sufficient
by (16.3k points)
by the way the js files are minimized for speed to get  readable and editable format use notepad++ and jstool plugin and do jsformat of the minimized version

Related questions

+1 vote
1 answer 1.3k views
+1 vote
0 answers 488 views
0 votes
0 answers 817 views
0 votes
2 answers 6.5k views
0 votes
3 answers 2.6k views
0 votes
0 answers 696 views
0 votes
1 answer 558 views
0 votes
1 answer 698 views
0 votes
0 answers 242 views
0 votes
1 answer 727 views
0 votes
0 answers 371 views
0 votes
2 answers 1.4k views

635 questions

495 answers

98 comments

2.9k users

Join BPM Community Discord Channel

Welcome to BPM Tips Q&A, Community wiki/forum where you can ask questions and receive answers from other IBM BPM experts and members of the community. Users with 2000 points will automatically be promoted to expert level.
Created by Dosvak LLC
Our Youtube Channel
...