Concatenation of strings to use as filters in Dynamics NAV Reporting

Naresh Vaneshwar
Nareshwar R.
Published in
1 min readJan 30, 2016

I have been trying to get all the Item no. in the RFQ Lines (Request For Quotes Lines) as in one string concatenating all with a pipeline(‘|’).

Let me just jump into the code how did I perform this filtration.

Variable “Filter” will concatenate all Items within the filter. Check out the screenshot.

This concept is inspired by Codeunit 41, TextManagement.

In the Codeunit, please refer to the AddToFilter() method which concats the strings.

Edit on 09th Feb 2016, I have written a Round 2 of how to generalize the string concatenation. Please check here.

--

--

Naresh Vaneshwar
Nareshwar R.

Technical findings and new developments on Business Central