Notifications
Announcements
No record found.
Hi Experts,
In my custom table I have some data as shown below, I need to remove the duplicates, concatenate the values having comma in between and display it in a report. Any help would be appreciated.
ItemId
Item1
Item2
I need to display the result as Item1,Item2.
Thanks in advance.
You can use something like that :
str1260 yourItemids; yourtable yourtable; while select itemid from yourtable group by yourtable.itemid { yourItemids = strfmt(",%1", yourtable.itemid)); }
you can follow MCallebert instruction to concatenate the string and you can do group by in the select statement to avoid duplicate values being selected
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Martin Dráb 565 Most Valuable Professional
André Arnaud de Cal... 450 Super User 2025 Season 2
Sohaib Cheema 250 User Group Leader