I would like to know if there is a proper way to customize the datamodel in order to change the way external objects are searched directly in the new object creation page (without manually adding criterions in the search page) .
For example, when i create a new "DocumentNote" object, i need to indicate an Organization. I would like to find the organization by its name - which is the case today - but also by its code, and this without opening the search box by clicking on the search icon on the right of the box.
Is this possible ?
As I thought, editing the <presentation> section of the object does not seems to have any impact or the direct lookup - it only customizes the search page.
Thanks !
Last edit: Raphaël 2024-08-07
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi Raphaël,
The widget used to search for an external Key, only searches through the friendlyname of the object. That one can be configured to include the organization code, in which case if the user enters an organization code the corresponding organization would be retrieved.
That widget can also display other information, such as the code and the country of an organization, but those additional fields aren't used to search for organizations matching what the user has typed in the widget. Maybe iTop could be enhanced to automatically include those additional fields in the matching criterion, but it is very low in our priority list.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thanks, this was precisely what i wanted to know !
Adding the attribute in the naming part of the class in order to complete the friendlyname was the solution.
Raphaël
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello,
I would like to know if there is a proper way to customize the datamodel in order to change the way external objects are searched directly in the new object creation page (without manually adding criterions in the search page) .
For example, when i create a new "DocumentNote" object, i need to indicate an Organization. I would like to find the organization by its name - which is the case today - but also by its code, and this without opening the search box by clicking on the search icon on the right of the box.
Is this possible ?
As I thought, editing the
<presentation>
section of the object does not seems to have any impact or the direct lookup - it only customizes the search page.Thanks !
Last edit: Raphaël 2024-08-07
Hi Raphaël,
The widget used to search for an external Key, only searches through the friendlyname of the object. That one can be configured to include the organization code, in which case if the user enters an organization code the corresponding organization would be retrieved.
That widget can also display other information, such as the code and the country of an organization, but those additional fields aren't used to search for organizations matching what the user has typed in the widget. Maybe iTop could be enhanced to automatically include those additional fields in the matching criterion, but it is very low in our priority list.
Vincent,
Thanks, this was precisely what i wanted to know !
Adding the attribute in the naming part of the class in order to complete the friendlyname was the solution.
Raphaël