IBM Support

PK88005: CUSTOMER IS USING DXL CODE TO CHANGE LABEL TEXT.

Subscribe

You can track all active APARs for this component.

APAR status

  • Closed as fixed if next.

Error description

  • current behaviour:
    - click on checkbox changes all three lines of label correct
    - all following clicks just change first line of label
    
    expected behaviour:
    - every click, not just the first one, changes all lines of the
    label
    
    Is there a patch or workaround available ?
    

Local fix

  • how about defining several labels then using hide/show to change
    the visible one in the callback function.
    
    DBE infoLabel2
    DBE infoLabel3
    DBE infoLabel4
    DBE infoLabel5
    int counter = 0
    void changeLabelText(DBE calledFrom)
    {
     counter++
     if (counter==1) {
     hide infoLabel
     hide infoLabel5
     show infoLabel2
     }else if (counter==2) {
     hide infoLabel2
     show infoLabel3
     }else if (counter==3) {
     hide infoLabel3
     show infoLabel4
     }else {
     hide infoLabel4
     show infoLabel5
     counter= 0
     }
     hide mainBox
     show mainBox
    }
    mainBox = create("Test", styleCentered|styleFixed)
    string labelText[1] = {"modify label value"}
    DBE labelCheckBox = checkBox(mainBox , "", labelText, 0)
    set(labelCheckBox, changeLabelText)
    DBE sep = separator mainBox
    infoLabel = label(mainBox ,
    "LineOneOneOne\nLineTwoTwoTwo\nLineThreeThreeThree")
    
    infoLabel2 = label(mainBox , "Line 1\nLine 2\nLine 3\n")
    infoLabel2->"top"->"aligned"->infoLabel
    infoLabel2->"left"->"aligned"->infoLabel
    
    infoLabel3 = label(mainBox , "Line 444\nLine 555\nLine 666\n")
    infoLabel3->"top"->"aligned"->infoLabel
    infoLabel3->"left"->"aligned"->infoLabel
    
    infoLabel4 = label(mainBox , "Line 77777\nLine 88888\nLine
    99999\n")
    infoLabel4->"top"->"aligned"->infoLabel
    infoLabel4->"left"->"aligned"->infoLabel
    
    infoLabel5 = label(mainBox , "Line AAAAAAA\nLine BBBBBBB\nLine
    CCCCCCC\n")
    infoLabel5->"top"->"aligned"->infoLabel
    infoLabel5->"left"->"aligned"->infoLabel
    
    hide infoLabel2
    hide infoLabel3
    hide infoLabel4
    hide infoLabel5
    
    show mainBox
    

Problem summary

  • dxl to change label text.
    
    current behaviour:
    - click on checkbox changes all three lines of label correct
    - all following clicks just change first line of label
    
    expected behaviour:
    - every click, not just the first one, changes all lines of the
    label
    

Problem conclusion

Temporary fix

Comments

APAR Information

  • APAR number

    PK88005

  • Reported component name

    TLOGIC DOORS

  • Reported component ID

    5724V61DR

  • Reported release

    910

  • Status

    CLOSED FIN

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2009-06-04

  • Closed date

    2009-12-02

  • Last modified date

    2009-12-24

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

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

Fix information

Applicable component levels

  • R920 PSY

       UP



Document information

More support for: Rational DOORS

Software version: 9.1

Reference #: PK88005

Modified date: 24 December 2009