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

MultiSelect lookup in a SSRS report in D365FO

$
0
0

I am trying to follow this tutorial to make the multi-select lookup working without success.

https://community.dynamics.com/365/financeandoperations/b/dynamicsaxinsightbyanas/archive/2014/12/12/ax-2012-multi-select-lookup-for-ssrs-report-dialog

Here is what I have for look up function in UIBuilder class

Query                           query;
QueryBuildDataSource            qbds;    
MyTableItems   	                tmpEnumValues;
TableId                         multiSelectTableNum = tableNum(MyTableItems);
container                       selectedFields = [multiSelectTableNum, fieldName2id(multiSelectTableNum, fieldStr(MyTableItems, Code))];

query = new Query();

qbds = query.addDataSource(tableNum(MyTableItems ));
qbds.addSelectionField(fieldNum(MyTableItems , Code));
qbds.addSelectionField(fieldNum(MyTableItems , Name));              
        
SysLookupMultiSelectGrid::lookup(
            query,
        _control,
        _control,
        _control,
        selectedFields);


And this is how I am calling the lookup function in the postBuild.



listField = this.bindInfo().getDialogField(this.dataContractObject(),methodStr(MyContract, ParmMyList));
        listField .registerOverrideMethod(methodStr(FormStringControl, lookup),methodStr(MyContract,multiLookup), this);
        if (listField)
        {
            listField.lookupButton(1);
        }

What I am doing wrong here?






Viewing all articles
Browse latest Browse all 72043

Trending Articles



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