IBM Support

Child object key attributes not displayed

Troubleshooting


Problem

Child object key attributes are not visible, even when they are specified in the Object Structure.

Cause

When creating an Object Structure with main object as WORKORDER and child object as WOACTIVITY. The WOACTIVITY has the key attributes SITEID and WONUM. These fields are included in the exclude / include fields dialog box in the select action menu.
However, when generating this object structure Schema/View XML file, these two fields are not in the WOACTIVITY section.

This creates problems when using web services to query and update the WOACTIVITY.

I can query a Work Order, and see it has tasks, but I am not able to update the WOACTIVITY object because I do not know the WONUM of the WOACTIVITY.

Resolving The Problem

By default, the child object Key Attributes are automatically removed if the parent object has the same keys.

However, there is a setting in the Object Structure application select action menu that you can use to change this behavior.

In the Object Structures application - Select Action - Advanced Configuration
Uncheck the "Exclude Parent Key Attributes" option. This will make the child object key attributes visible in the Schema/View XML file.

This is a new feature added in Maximo 7.5.

Uncheck the Exclude Parent Key Attributes check box for any object where you want these attributes to be included for child objects. When checked (the default), key fields that exist in a child object are not included in the section of the message for the child object if the same field is part of the key of the parent object.

[{"Product":{"code":"SSLKT6","label":"IBM Maximo Asset Management"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"MEA: Generic","Platform":[{"code":"PF033","label":"Windows"}],"Version":"7.5;7.6","Edition":"","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]

Document Information

Modified date:
17 June 2018

UID

swg21972617