Only widget-type select in adding a related record? Lookup possible?

24 views
Skip to first unread message

Richard Mücke

unread,
Jan 10, 2025, 1:35:50 AMJan 10
to Xataface
Hi Steve,

is there a way to use another widget-type for adding related records outside the edit form of a record?
Adding a related record in the edit form enables me to use nearly any kind of widget-type. But using the "Add [relationshipname]" button on the relationship tab only let me use select.

Overview:
relrec01.png

Adding a relationship:
relrec02.png

I don't know where to change this.
Setting up this relationship as a field in fields.ini doesn't change the widget-type on this screen. It does change it within the edit form of the parent record but not on the extra screen.

Here is my relationship.ini:
[rel_g_vertrag_h_servicepartner]
__sql__ = "SELECT * FROM link_g_vertrag_h_servicepartner tblLink INNER JOIN h_servicepartner ON tblLink.h_servicepartner_id = h_servicepartner.id WHERE tblLink.g_vertrag_id = '$id'"
action:label = "Servicepartner"
action:order = 20
actions:addnew = 0
actions:remove = 1
actions:addexisting = 1
visibility:h_servicepartner_id = hidden
visibility:date_next_check = hidden
visibility:kontaktdaten = hidden
section:visible = 0
action:visible = 1
vocabulary:existing
list:link_to_domain_record = 1

Thanks for your help!
Kind regards
Richard
Reply all
Reply to author
Forward
0 new messages