Fetch records based on logged in user from a custom table
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2025 11:11 AM
Hi All,
I have created a custom a table sn_hr_core_request_type, having fields like below
I have created an HR Service which associated with an Record Producer, record producer is having variable:
I need to show Request type choices based on available for country field based on who is this request for variable changes.
I have craeted script include:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2025 02:01 AM - edited 08-11-2025 02:03 AM
Hello @Rekha20 ,
Kindly try to user
ref_auto_completer=AJAXTableCompleter;ref_sequence=u_order
If not working,Can you please share screen print of your dropdown what it's showing, and order in your custom table.
Mark this as helpful if it resolves your issue.
Thanks,
Sunny R
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2025 02:06 AM
Hi @Sunny3008
Table record:
Choices on variable:
Order is correct for logged in user but when change user in Who is this request for? i.e. subject_person then these choices order are not correct.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2025 02:18 AM
Hi Rekha,
Did you tried with variable attribute like following
ref_auto_completer=AJAXTableCompleter;ref_sequence=u_order,ref_qual_elements=subject_person
Thanks,
Sunny R
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2025 02:20 AM
Yes @Sunny3008 I tried but still the same result.