Quantcast
Channel: Microsoft Dynamics AX Forum - Recent Threads
Viewing all articles
Browse latest Browse all 72043

I'm trying to add multiple values to a single field in a range

$
0
0

Currently, I have a list of strings that represent SiteId's

I'm trying to think of a way to insert the values into the QueryBuildRange.value() property.

QueryBuildRange.value(listObject) does not work as it only expects one string.

I was thinking I could iterate through the list but I figured I might have to create a new QueryBuildRange object each time as I don't think there's an addEnd() method like there are for lists.

Then I'd have to bring the values from each together. 

If I'm wrong please explain

Thanks!

P.S. here is my code

        while select SiteId from siteToUser where curUserId() == siteToUser.user
        {
            siteList.addEnd(siteToUser.SiteId);
        }
        sysTableLookup = SysTableLookup::newParameters(tableNum(InventSite),_lookup);

        qbds = query.addDataSource(tableNum(InventSite));
        qbr = qbds.addRange(fieldNum(InventSite, SiteId));
        qbr.value();


Viewing all articles
Browse latest Browse all 72043

Latest Images

Trending Articles



Latest Images

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