WebSphere Commerce EnterpriseWebSphere Commerce Professional

Determining the ID of a user interface element in an editor page or dialog

Use the widget hover logging to determine the ID of a user interface element in an editor page or dialog.

About this task

An important first step in most customization tasks is to determine what it is that you want to customize. To facilitate locating the identifiers of a user interface element on an editor page or dialog in the IBM Sales Center client, a debugging option called widget hover logging has been added to the com.ibm.commerce.telesales.widgets plug-in. This debugging option prints the ID of Sales Center UI widgets to the log file at WCDE_installdir\mscworkspace\runtime-workspace\.metadata\.log when you hover over them, in the format <namespace>.<element ID>. The namespace for all default Sales Center UI widgets is com.ibm.commerce.telesales.ui.impl.

Note: The namespace that is prints in the console is not necessarily the plug-in fragment that the element ID is defined in.

To enable widget hover logging:

Procedure

  1. In the IBM Sales Center development environment, select Run ... from the Run menu.
  2. Expand Run-time Workbench and select Sales Center.
  3. Select the Tracing tab.
  4. Select the Enable tracing for the selected plug-ins check box. As a result of this change, when you select a plug-in in the left window, its tracing options are displayed in the right window. The tracing options can be edited in the right window.
  5. Select the com.ibm.commerce.telesales.widgets plug-in.
  6. Select the debug/widgetHoverLogging check box and the debug check box

Results

Once you find the element ID, you can search on the ID in the IBM Sales Center user interface plug-ins.