Then you have to add this new "caller_location_id" field to the <presentation> sections (details and search).</presentation>
You can start by modifying directly the file datamodel.request-mgmt.xml, but if you make the extra effort of creating a separate module for your customization, the upgrade to the next version of iTop will be transparent.
Hi!
I would like to see field "location" of the caller in user requests, and it will be searchable.
Can I add this field by editing data model file of user request?
Yes, you can create an "ExternalField" on the UserRequest class, refering to the field "location_id" of the contact.
Something like:
Then you have to add this new "caller_location_id" field to the <presentation> sections (details and search).</presentation>
You can start by modifying directly the file datamodel.request-mgmt.xml, but if you make the extra effort of creating a separate module for your customization, the upgrade to the next version of iTop will be transparent.
Check the documentation on the wiki about customizing the datamodel:
https://wiki.openitop.org/doku.php?id=2_0_3:customization:start
https://wiki.openitop.org/doku.php?id=2_0_3:customization:xml_reference
thank you!
I made modifications. All is good.
I added code for search:
<search>
<items>
<item id="user-content-caller_location_id">
<rank>130</rank>
</item>
</items>
</search>
Search field is displaying as text field, but I would like to have a list, as in CI search, for example.