You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2024-04-15 14:17:47

Webhead
Member
Registered: 2023-04-13
Posts: 6

Generic Object Foreign Key - other field

I've read the docs multiple times but have found them wanting...

My goal is to add a dropdown with the passive_devices but instead of wanting the passive_device name I'd like the field "otherserial" to display.
Following the database structure: for the table glpi_passivedcequipments :

as such to add a field:

$GO_FIELDS['passivedcequipments_id']['name'] = 'Linked passive device';
$GO_FIELDS['passivedcequipments_id']['field'] = 'otherserial';
$GO_FIELDS['passivedcequipments_id']['input_type'] = 'dropdown';

This adds the field as a dropdown but only shows the field 'name' from the table 'glpi_passivedcequipments'. I'd really like to select the field 'otherserial' but allas.

Is this even possible?

Offline

Board footer

Powered by FluxBB