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 06:01 AM
Hi Kalai,
Concatenating a reference field to an empty string ('') will automatically cast the value to string.
Thanks,
Berny
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-11-2015 07:27 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-11-2015 07:31 AM
Agree
