IBM Support

PK99275: YOU CANNOT ATTACH A CALLBACK TO A FIELD DBE BECAUSE THIS FUNCTION IS NOT CALLED IN THE FUNCTION ENTER

Subscribe

You can track all active APARs for this component.

APAR status

  • Closed as program error.

Error description

  • TLOG#54282
    
    You cannot attach a callback to a field DBE because this
    function is not
    not called if the user type ENTER when the field has the focus,
    which is
    the expected behaviour as described in the help and the
    behaviour with
    previous versions.
    
    
    Here is a piece of code to reproduce the defect :
    When pressing the key ENTER into the field, the message 'yo'
    should be
    displayed. It isn't.
    
    DB db = create('zzz')
    DBE dbez = field (db, 'zzz', '', 10, false)
    void onClose (DB db)
    {
      hide db
    }
    close (db, false, onClose)
    void zzz (DBE dbe)
    {
      ack 'yo'
    }
    set (dbez, zzz)
    show db
    
    
    
    And here is the extract of the DXL help file :
    
    set (select)
    Declaration
    void set(DBE element, void select(DBE))
    
    Operation
    
    Attaches a callback to any dialog box element other than a list
    view. The
    callback must be of the form:
    
    void select(DBE option){
    }
    
    
    which fires when option changes.
    
    The exact semantics vary depending on the type of element, but
    in
    principle it means a single click. For field elements, the
    callback only
    fires when the user clicks Return or Enter with the cursor in
    the field.
    
    If this function is used with a list view, a DXL run-time error
    occurs.
    

Local fix

  • n/a
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    You cannot attach a callback to a field DBE because this
    function is not called if the user types ENTER when the
    field has the focus, which is the expected behaviour.
    
    
    
    
    
    Here is a piece of code to reproduce the defect :
    
    When pressing the key ENTER into the field, the message "yo"
    
    should be displayed. It isn't.
    
    
    DB db = create("zzz")
    DBE dbez = field (db, "zzz", "", 10, false)
    void onClose (DB db)
    
    {
    
      hide db
    }
    close (db, false, onClose)
    void zzz (DBE dbe)
    {
    
      ack "yo"
    }
    
    set (dbez, zzz)
    show db
    

Problem conclusion

  • The code has been changed to enable the required behaviour
    

Temporary fix

Comments

APAR Information

  • APAR number

    PK99275

  • Reported component name

    TLOGIC DOORS

  • Reported component ID

    5724V61DR

  • Reported release

    920

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2009-10-22

  • Closed date

    2010-09-17

  • Last modified date

    2010-09-17

  • 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

    TLOGIC DOORS

  • Fixed component ID

    5724V61DR

Applicable component levels

  • R920 PSN

       UP



Document information

More support for: Rational DOORS

Software version: 9.2

Reference #: PK99275

Modified date: 17 September 2010