Distinct or unique values on reference field / lookup
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-08-2015 10:58 PM
Hey all
On a form i have created a reference field which points to a custom table and this table has NO UNIQUE key.
So upon clicking the lookup icon, it should display only unique or distinct values like below it should show only 1200 and 1300.
| VenID | Name |
| 1200 | ABC |
| 1300 | XYZ |
| 1200 | JKL |
I have made use of reference qualifier and wrote a code like
vendorIdList = arrayUtil.unique(vendorIdList);
This is working, but since the table has some thousands of records, its taking very long time to display the unique values.
Any other method to achieve this quickly.
TIA
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-11-2015 04:53 AM
Yes Berny. Its checked only
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-11-2015 05:08 AM
And if that still doesn't work, can you reproduce this in any demo instance?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-11-2015 12:57 AM
Replace
return 'sys_idIN'+ticket_id+'';
With
return 'sys_idIN'+ticket_id.toString();
And
return 'sys_idIN'+'***'; //
With
return ''; //
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-11-2015 04:52 AM
Hi Kalai,
Still returning null values.
What i found was like its not returning values when GlideAggregate is used.
when i replaced
ticket_id.push(ticket_list.sys_id+'');
with
ticket_id.push(u_ven_id.sys_id+'');
it will atleast populate the values (but not unique)
Any other idea
Thanks
Nikh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-11-2015 05:04 AM
