IBM Support

IC62465: HATS RCP DROP-DOWN WIDGET DOES NOT DISPLAY AN INITIAL DEFAULT VALUE

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • User has defined an input field to be a drop-down (data entry)
    widget.  There are 2 list items defined for the drop-down
    widget, but neither of these items are shown as the default
    selection in the drop-down widget.  If the same definitions are
    done on a Web project versus RCP then the first item in the
    list is used as the default selection.
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED: HATS Rich Client Platform users that define  *
    *                                                              *
    *                 an input field to be a drop-down widget      *
    ****************************************************************
    * PROBLEM DESCRIPTION: Customer defined an input field in a    *
    *                      Rich Client Platform HATS project to    *
    *                      be a drop-down widget and defined two   *
    *                      list items.  However, neither of these  *
    *                                                              *
    *                      items were displayed as the default     *
    *                      item in the drop-down list.             *
    *                      In a Web application HATS project       *
    *                      the first item in the list is selected  *
    *                                                              *
    *                      as the default value.                   *
    *                      The HATS Rich Client Platform project   *
    *                      should work the same as the Web         *
    *                      application environment does.           *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    The code, SWTElementFactory.java, that creates the drop down
    options first creates an empty/blank option.  After the user
    defined options are added the code then goes through a loop to
    try and match the value from the input field with one of the
    options in the list.  If the user specifies an option that is
    blank it will not get matched because the initial blank option
    that is added always matches first.
    

Problem conclusion

  • The problem was fixed in SWTElementFactory.java by preventing
    the blank option that HATS automatically generates from being
    matched first and it will only be used if none of the other
    options in the list match.  The for loop for matching the
    options to the host value will start at index 1, instead of 0,
    if there are more than 2 options in the list.  Thus, the first
    HATS generated blank option will be ignored.  If no match is
    found then the drop-down list will default to the HATS
    generated blank option.
    

Temporary fix

Comments

APAR Information

  • APAR number

    IC62465

  • Reported component name

    RATL HATS FOR 5

  • Reported component ID

    5724U6800

  • Reported release

    750

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2009-08-11

  • Closed date

    2009-08-27

  • Last modified date

    2009-08-27

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

Fix information

  • Fixed component name

    RATL HATS FOR 5

  • Fixed component ID

    5724U6800

Applicable component levels

  • R750 PSY

       UP

[{"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SSXKAY","label":"IBM Host Access Transformation Services"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"7.5","Edition":"","Line of Business":{"code":"LOB35","label":"Mainframe SW"}}]

Document Information

Modified date:
27 August 2009