Quantcast
Viewing all articles
Browse latest Browse all 72043

Concatenating values in a queryValue parameter

Hi all,

Running AX 2012 R3 CU9

Think this might be a really simple one but I can't find anything online which shows what I'm doing wrong. Trying to concatenate 2 values in a queryValue parameter for a form.

Have been using within executeQuery to filter a source as follows:

Shortage.value(queryValue('Shortage1'));

I've got multiple data ranges like this for different kinds of fields.

And this works fine, however when I try to change it to accept two values like so:

Shortage.value(queryValue("Shortage1,Shortage2"));

The parser seems to think the comma is " \, ". I've tried to work round it by messing with quote usage, building a container for the two values and adding them that way, but no luck. I eventually managed to get it working by adding two QueryBuildRanges for the two values. However, my employer then asked for another query which has essentially "!Shortage1,!Shortage2". And this method doesn't seem to work for that. Is there a way I can force it to accept that string as it is?

Thanks in advance for your help

Luke


Viewing all articles
Browse latest Browse all 72043

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>