Menu

Display a new filed in all child class

Marah Alh
2023-03-09
2023-04-18
  • Marah Alh

    Marah Alh - 2023-03-09

    Hello,

    kindly I need your help,
    I want to add new field to "PhysicalDevice" and display it in all child class, must I to add it to the presentation of each child class? or is there any solution to define it in one place?

    thanks.

     
  • Jeffrey Bostoen

    Jeffrey Bostoen - 2023-03-09

    Indeed, you must define it in the presentation of each child class.

     
    👍
    1
  • Christopher A. Johnson

    If you want to add a new field to the "PhysicalDevice" class and have it displayed in all child classes, you can define the new field in the "PhysicalDevice" class and inherit it in all child classes.

    This means that the child classes will automatically inherit the new field without having to define it again in each child class. This approach will also help you avoid duplication and maintain consistency across all child classes.

     
    👍
    1
  • Vincent @ Combodo

    As Jeffrey said, you must specify if and where to display that new field in the presentation of each child class. You don't have to "redefine" the field definition itself, which would fail at Setup!
    There is no mechanism yet to define a portion of the details presentation at the PhysicalDevice level for eg. and include it on the Server details presentation. Such mechanism if used alone, would prevent to intercalate Server specific fields within the PhysicalDevice ones, which might be very pertinent from an end-user perspective so.

     
    👍
    1

Log in to post a comment.

Auth0 Logo