Hi there,
I'm using iTop 3.0 and I have a problem visualizing new added attribute to Physical devices.
I'm adding new statuses and two new attributes (floor and room). Now I can see the new statuses, but can not see the new fields. I've checked the database - the columns are there, check the templates (for example PC) and the 2 attributes are there also.
Can you tell me where I'm getting wrong?
Thanks in advance
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
You are missing the _delta="define" attribute on both those items. This is necessary to make them known to iTop. Actually all the rest in the "details" node can be deleted, as it should already be defined by default. You only need to specify the new or changed parts; in this case the two "item" nodes.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
You added a _delta="if_exists" to the class node : what might happening is that your module descriptor file doesn't have the proper dependencies set ? If so, this _delta won't throw any error and your XML will produce nothing. In my suggested XML I used _delta="must_exist" that would make an error in such case.
The PhysicalDevice class is defined in itop-config-mgmt (/datamodels/2.x/itop-config-mgmt), so your module must have this one as a dependency.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi there,
I'm using iTop 3.0 and I have a problem visualizing new added attribute to Physical devices.
I'm adding new statuses and two new attributes (floor and room). Now I can see the new statuses, but can not see the new fields. I've checked the database - the columns are there, check the templates (for example PC) and the 2 attributes are there also.
Can you tell me where I'm getting wrong?
Thanks in advance
Do you mind sharing the XML file here or on GitHub?
Here is the XML file:
Last edit: Pierre Goiffon 2022-02-21
In the presentation node: add the
_delta="define"
attribute for each new element (item id)Last edit: Jeffrey Bostoen 2022-01-31
But there are listed in the presentation node with rank 52 and 53?
Or I miss something?
You are missing the
_delta="define"
attribute on both those items. This is necessary to make them known to iTop. Actually all the rest in the "details" node can be deleted, as it should already be defined by default. You only need to specify the new or changed parts; in this case the two "item" nodes.Thank you for your patience,
But still don't see the new items. I add delta="define" on each row of the new items, run toolkit and still no luck.
Hello,
I've edited your message with the XML so that the code would be easier to read.
I would recommend changing your XML a bit, so that only new nodes are present :
You added a
_delta="if_exists"
to the class node : what might happening is that your module descriptor file doesn't have the proper dependencies set ? If so, this _delta won't throw any error and your XML will produce nothing. In my suggested XML I used_delta="must_exist"
that would make an error in such case.The PhysicalDevice class is defined in itop-config-mgmt (/datamodels/2.x/itop-config-mgmt), so your module must have this one as a dependency.
Hello Pierre,
Still have no luck see these items.
Do you have any other suggestion where to seek for error?
Thanks
Have you also updated the presentations for the child classes if you want to see room and floor?