Hi All,
I'm trying to dynamically populate a dropdown with all users of a predefined Group.
I have followed this tutorial and this post.
I set dropdown "options" to {var:read_data4}.
Then added 1 Read Data with two models: main model "Groups" (#__user_usergroup_map) and associated model "Users" (#__users) with "One matching record, foreign key at the related table" -> user_id.
In the main model Groups the "Fields to retrieve" are
The result is a dropdown with value/label equals to "user_id" instead of "id" and "name".
I tried many combinations of relations, foreign key and fields to be retrieved without success, any suggestions will be much appreciated.
Thanks in advance
Andrea
I'm trying to dynamically populate a dropdown with all users of a predefined Group.
I have followed this tutorial and this post.
I set dropdown "options" to {var:read_data4}.
Then added 1 Read Data with two models: main model "Groups" (#__user_usergroup_map) and associated model "Users" (#__users) with "One matching record, foreign key at the related table" -> user_id.
In the main model Groups the "Fields to retrieve" are
Groups.user_id
Users.username
The result is a dropdown with value/label equals to "user_id" instead of "id" and "name".
I tried many combinations of relations, foreign key and fields to be retrieved without success, any suggestions will be much appreciated.
Thanks in advance
Andrea