IBM Support

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

Troubleshooting


Problem

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);
       });
   }

[{"Product":{"code":"SSFTN5","label":"IBM Business Process Manager Advanced"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"Coach","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF016","label":"Linux"},{"code":"PF033","label":"Windows"}],"Version":"8.0.1;8.0;7.5.1","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}},{"Product":{"code":"SSFTDH","label":"IBM Business Process Manager Standard"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"Coach","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF016","label":"Linux"},{"code":"","label":"Linux zSeries"},{"code":"PF033","label":"Windows"}],"Version":"8.0.1;8.0;7.5.1","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}},{"Product":{"code":"SSFTBX","label":"IBM Business Process Manager Express"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"Coach","Platform":[{"code":"PF016","label":"Linux"},{"code":"","label":"Linux zSeries"},{"code":"PF033","label":"Windows"}],"Version":"8.0.1;8.0;7.5.1","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]

Product Synonym

BPM

Document Information

Modified date:
15 June 2018

UID

swg21634989