How to set and keep field focus on a Coach with tables for IBM Business Process Manager (BPM)

Technote (troubleshooting)


Problem(Abstract)

When you develop a coach, it contains some tables and text fields. You expect to keep the focus on some text field when the Coach page is loading. However, some times this focus is not retained.

Cause

Because a portion of the layout logic for the table runs asynchronously, the window.onload() method is called before the layout for the table is done.

Resolving the problem

You have to add the following code to the CustomHTML control instead of assigning focus immediately when the window.onload() method is called. Assign focus when the table is done rendering.


  window.onload = function() {
       var enhancedGrid = dijit.byId("dojox_grid_EnhancedGrid_0");
       var handle = dojo.connect(enhancedGrid, "postrender", function() {
           dijit.byId(getDojoId("Text3")).focus();
           dojo.disconnect(handle);
       });
   }


Cross reference information
Segment Product Component Platform Version Edition
Business Integration IBM Business Process Manager Standard Coach AIX, Linux, Linux zSeries, Windows 8.0.1, 8.0, 7.5.1
Business Integration IBM Business Process Manager Express Coach Linux, Linux zSeries, Windows 8.0.1, 8.0, 7.5.1

Product Alias/Synonym

BPM

Rate this page:

(0 users)Average rating

Add comments

Document information


More support for:

IBM Business Process Manager Advanced
Coach

Software version:

7.5.1, 8.0, 8.0.1

Operating system(s):

AIX, Linux, Linux zSeries, Windows

Reference #:

1634989

Modified date:

2013-05-06

Translate my page

Machine Translation

Content navigation