Maximo EAM

 View Only
Expand all | Collapse all

Why is Can Autonumber attribute set to be read-only for some key fields?

  • 1.  Why is Can Autonumber attribute set to be read-only for some key fields?

    IBM Champion
    Posted Mon October 24, 2022 04:38 AM
    Does anyone know the logic for why the attribute MAXATTRIBUTECFG.CANAUTONUM is set to read-only for existing attributes. Is it that it can only be set on User Defined fields?

    For example, in an Asset Template the key field PLUSCTEMPLATE.TEMPLATEID has Can Autonumber unchecked, and it is read-only.

    ------------------------------
    Andrew Jeffery
    Maximo SME
    ZNAPZ b.v
    Barnstaple
    0777 1847873
    ------------------------------


  • 2.  RE: Why is Can Autonumber attribute set to be read-only for some key fields?

    Posted Tue October 25, 2022 03:49 AM
    Hi Andrew.

    Can autonumber will be read only (at least) in these cases:
    • When the Type is not one of these ALN, UPPER, LOWER, INTEGER, SMALLINT, BIGINT, DECIMAL, FLOAT or AMOUNT.
    • When the attribute name ends in _LONGDESCRIPTION.
    • And as you guessed, when the attribute is not User Defined.
    Best regards,

    ------------------------------
    Daniel Torrescusa
    Piensa en nube, SL
    ------------------------------



  • 3.  RE: Why is Can Autonumber attribute set to be read-only for some key fields?

    IBM Champion
    Posted Wed October 26, 2022 09:31 AM
    Hi Andrew,

    I thought the CANAUTONUM field would get set to read only if the that field was flagged as an auto number field the Organization setup. The PLUSCTEMPLATE.TEMPLATEID is the same as ASSET.TEMPLATEID, which has a default autonumber setup at the System Level.

    I think that's where a bug is present, because while the field is capable of being set to an autonumber, the main table ASSET is set to SITE level, but the templates are being set to SYSTEM level. 

    Related APAR: https://www.ibm.com/support/pages/apar/IJ15209


    Jason

    ------------------------------
    Jason Verly
    Reliability Engineering Manager
    Agropur US
    Le Sueur MN
    ------------------------------