0 votes
838 views
in Coach Views by (16.3k points)

1 Answer

0 votes
by (16.3k points)
If you create a custom coach view and place it inside a repeating construct like Table the view index is not automatically added to the Coach View and you may get undesired results

One way to handle this is if you have a OOB CV inside your control you can piggy back on the id of that CV to set the id of the parent Coach View elelemts

var viewid = _this.context.viewid;
viewid += _this.context.element.getElementsByClassName("Vertical_Layout")[0].id;
_this.context.element.querySelectorAll("div")[0].id = viewid + "-example";

Related questions

0 votes
1 answer 872 views
0 votes
0 answers 554 views
0 votes
0 answers 421 views
0 votes
1 answer 435 views
0 votes
0 answers 491 views

634 questions

495 answers

97 comments

2.7k 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
...