My questions may seem easy but I'm really news in itop dev.
I've created an extensions for adding a new dropdown field classification : "public, confidential,etc..." for many CIs like, servers, virtualserver, db ,etc...
1) I've defined a default value as "public" because no null value is allowed. Unfortunately when I put my config active, the classifications for all actual's CIs are appeared as "confidential". In the datamodel I've first configured this dropdown field in class id="Functional CI" and details/search/list item for class id="server". Actually I've didn't create in other CIs.
Where could be the problem??
2)I need to implement this for many CIs like Servers, Virtualserver,etc.... It is possible to create many datamodel.****.xml in the same extension directory? or should I insert into only one datamodel??
Ex.:
I don't remerber if the default value take the id or the value... Can you try to specify id in your value and put the default value as the id?
2) I do not think it is possible to have many xml datamodel file in one extension... You can include php files, in the module config in the array "datamodel", but i don't know if it is working with xml definition.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thank you for your answer.
I've tried with the default value as the id number but it is not working.
I'mk thinking that the default value is set in alphabetical order, and why "confidential" is with c it put it!!
Regards
H
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
My questions may seem easy but I'm really news in itop dev.
I've created an extensions for adding a new dropdown field classification : "public, confidential,etc..." for many CIs like, servers, virtualserver, db ,etc...
1) I've defined a default value as "public" because no null value is allowed. Unfortunately when I put my config active, the classifications for all actual's CIs are appeared as "confidential". In the datamodel I've first configured this dropdown field in class id="Functional CI" and details/search/list item for class id="server". Actually I've didn't create in other CIs.
Where could be the problem??
2)I need to implement this for many CIs like Servers, Virtualserver,etc.... It is possible to create many datamodel.****.xml in the same extension directory? or should I insert into only one datamodel??
Ex.:
Thanks and best regards,
H.
Last edit: H-nymo 2015-11-26
Hi,
1) Thishow I do it :
I don't remerber if the default value take the id or the value... Can you try to specify id in your value and put the default value as the id?
2) I do not think it is possible to have many xml datamodel file in one extension... You can include php files, in the module config in the array "datamodel", but i don't know if it is working with xml definition.
Hi,
Thank you for your answer.
I've tried with the default value as the id number but it is not working.
I'mk thinking that the default value is set in alphabetical order, and why "confidential" is with c it put it!!
Regards
H
Which iTop version are you using?
Because I have encounter some problems with the default values sometimes with previous itop versions.
Here's the itop version: