0 votes
in Coach Views by (21.5k points)

1 Answer

+2 votes
by (16.1k points)

There is no need to create a custom coach view for this since its a simple javascript invocation of the window.print() method, you can make a copy of the stock button and change the onclick() as following in the behaviour->view javascript

    button.onclick = function() {
        if (this.disabled == false) {
            var context = _this.context;
            if (context.options.allowMultipleClicks == undefined || !context.options.allowMultipleClicks.get("value")) {
                this.disabled = true;
                domClass.add(this, "BPMButton-disabled");
            if (context.binding) {
                context.binding.set("value", true);
            var _button = this;
            //context.trigger(function() {_button.disabled = false; domClass.remove(_button, "BPMButton-disabled");});


if you need to print certain div in the Coach, you can do that also by defining a div wrapper and passing the specified div to the invocation as specified at the following url


Related questions

0 votes
0 answers 186 views
0 votes
1 answer 386 views
0 votes
0 answers 156 views
0 votes
1 answer 159 views
0 votes
1 answer 369 views
0 votes
2 answers 278 views
0 votes
0 answers 56 views
+1 vote
0 answers 290 views

596 questions

485 answers


1.8k users

Dosvak IBM BPM /BAW Products, Download Evaluation
Process & Performance Tools Process & Performance Tools
Code Analyzer Code Analyzer
UI Toolkit UI Toolkit
Integration Monitoring Integration Monitoring
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