IBM Support

PI54915: ADDCOLUMN API METHOD DOESN'T SAVE COLUMN NAME, LOST AFTER PROJECT REOPEN

A fix is available

Subscribe

You can track all active APARs for this component.

APAR status

  • Closed as program error.

Error description

  • If you add the column manually then the name is retained after
    reopening the project. However, if you use the API then the
    column names (for the tag columns only) are lost after reopen.
    
    Example code, see the first three columns. After running this
    code, save project and reopen:
    
    		IRPApplication app =
    RhapsodyAppServer.getActiveRhapsodyApplication();
    		IRPPackage pkg = app.activeProject().addPackage("TestPkg");
    		IRPTag tag1 = (IRPTag)pkg.addNewAggr("Tag", "Tag1");
    		IRPTableLayout tbl1 =
    (IRPTableLayout)pkg.addNewAggr("TableLayout", "TL1");
    		tbl1.addColumn(Column.TAG, "TestPkg::Tag1", "Tag Column");
    		tbl1.addColumn(Column.TAG_EDIT, "TestPkg::Tag1", "Tag_edit
    Column");
    		tbl1.addColumn(Column.TAG_EDIT_STRICT, "TestPkg::Tag1",
    "Tag_edit_strict Column");
    		tbl1.addColumn(Column.GENERAL_ATTRIBUTE, GeneralAttribute.NAME
    , "Name");
    		tbl1.addColumn(Column.GENERAL_ATTRIBUTE,
    GeneralAttribute.OWNER , "Owner");
    		tbl1.addColumn(Column.GENERAL_ATTRIBUTE,
    GeneralAttribute.DESCRIPTION , "Description");
    		tbl1.addColumn(Column.GENERAL_ATTRIBUTE,
    GeneralAttribute.ELEMENT_TYPE , "Type");
    		tbl1.addColumn(Column.GENERAL_ATTRIBUTE,
    GeneralAttribute.CLASSIFIER , "Classifier");
    		tbl1.addColumn(Column.RELAION_ATTRIBUTE_FROM,
    RelationAttributeFrom.FROM_ELEMENT, "From Element");
    		tbl1.addColumn(Column.RELAION_ATTRIBUTE_TO,
    RelationAttributeTo.TO_ELEMENT, "To Element");
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * Rhapsody 8.1.4                                               *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * ADDCOLUMN API METHOD DOESN'T SAVE COLUMN NAME, LOST AFTER    *
    * PROJECT REOPEN                                               *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    

Problem conclusion

  • Fixed in 8.1.5
    

Temporary fix

Comments

APAR Information

  • APAR number

    PI54915

  • Reported component name

    TLOGIC RHAPSODY

  • Reported component ID

    5724V74RP

  • Reported release

    812

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2016-01-06

  • Closed date

    2016-04-25

  • Last modified date

    2016-04-25

  • 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 RHAPSODY

  • Fixed component ID

    5724V74RP

Applicable component levels

  • R814 PSY

       UP



Document information

More support for: Rational Rhapsody

Software version: 8.1.2

Reference #: PI54915

Modified date: 25 April 2016