Search by last name - variable attribute in record producer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-05-2023 12:53 AM
Hi,
I have a quick question.
In the variable, I have an attribute that displays name and fields from the department. I want to be able to search by last name, but I don't want to display the last name column.
column.ref_ac_columns=department.name;department.id,ref_ac_columns_search=true,ref_ac_order_by=name,ref_auto_completer=AJAXTableCompleter
Currently, it's not possible to search using the last name without displaying it. How can I modify the variable attribute to achieve this?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-05-2023 01:05 AM
Hi @miro2,
Since the last name is part of the name, users can search by (*) Last name and it will be visible like below.
Mark this answer as correct and helpful if it solves your issue.
Regards,
Siva Jyothi M.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-05-2023 01:10 AM - edited ‎09-05-2023 01:11 AM
yeah, I know, but I don't want to use wildcards here
users should be able to type Tuter or tuter and find the user record
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-05-2023 01:31 AM - edited ‎09-05-2023 01:31 AM
Hi @miro2,
You cannot directly search on Last name, without displaying it. However, you can enable contains search, without having to use a wildcard.
This will work that way for every reference field if you set that up. So please be aware of this.
Take a look here to see how to set it up.
Help others to find a correct solution by marking the appropriate response as accepted solution and helpful.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-05-2023 02:00 AM - edited ‎09-05-2023 02:21 AM
Hi @Peter Bodelier
This option works, but I have the OOB glide.ui.ref_ac.startswith system property set to true on the business instance. Changing that and creating '<referenced table>.autocomplete.contains, would result in a global change. On the business instance where the variable attribute is not set, I can search by last name, but the last name column isn't displayed in the reference field.
This configuration is set somewhere on client instance, but I need to customize it in variable attribute slightly to meet my requirements.*
*I had to edit previous post.
