0 votes
210 views
in Coach Views by

1 Answer

0 votes
by

If you have a button in a grid it fires a single boundary event, but you may need to know which instance/row inside the grid it was clicked, this can be done by making a copy of the button and altering the following

First you can change the binding type of the button to the appropriate datatype you want to receive

Add a configuration option new variable (e.g. yourconfigvariablename) of the row data which you will bind to hold the value

in Behaviour -> Event handlers -> View find the following lines

   if (context.binding) {
    context.binding.set("value", true);
   }

and change them to

   if (context.binding) {
    context.binding.set("value", context.options.yourconfigvariablename.get("value"));
   }

bind the receiving variable to the binding of the type you set the binding to earlier and the row BO data element to the config option, on clicking of the button in the row the config binding will get transferred to  the button binding element which you can use to identify which row button was clicked.

Related questions

0 votes
1 answer 82 views
+1 vote
0 answers 41 views
0 votes
1 answer 226 views
0 votes
0 answers 50 views
0 votes
0 answers 12 views
0 votes
0 answers 9 views
0 votes
1 answer 102 views
0 votes
0 answers 22 views
0 votes
0 answers 60 views
0 votes
0 answers 15 views

495 questions

405 answers

81 comments

1.6k users

Created By Dosvak LLC (WWW.DOSVAK.COM)
Our Public Git Repository

Dosvak UI Toolkit --- Download --- Demo

Subscribe us at

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