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

Multiselect Enum values on SSRS report using UIBuilder

$
0
0

Hi,

I'm trying to add a multiselect parameter based on a Enum field for an SSRS report using a UIBuilder.

I already glanced through the following article but to no avail : https://community.dynamics.com/ax/f/33/t/156101

I'm trying to use the SysLookupMultiSelectCtrl combined with an InMemory temp table.

So in my UiBuilder class I have following code

fillTmpEnumTable (fill in memory tmp table)

SPLShipmentListStatusTmp enumTmp;
SysDictEnum dictEnum = new SysDictEnum(enumNum(ProjStatus));
int idx;

delete_from enumTmp;

for (idx = 0;idx < dictEnum.values();idx++)
{
enumTmp.clear();
enumTmp.initValue();
enumTmp.EnumId = dictEnum.index2Value(idx);
enumTmp.enumLabel = dictEnum.index2Label(idx);
enumTmp.insert();
}

statusListTmp.setTmpData(enumTmp);

postBuild

this.fillTmpEnumTable();

dfProjStatus = this.bindInfo().getDialogField(contract,methodStr(SPLShipmentListContract,parmProjectStatus));

ProjStatusQueryRun

QueryRun    queryRun;

queryRun = new QueryRun(queryStr(SPLShipmentListStatusTmp));
queryRun.setCursor(statusListTmp);

return queryRun;

postRun 

msProjState = SysLookupMultiSelectCtrl::constructWithQueryRun(this.dialog().dialogForm().formRun(),
dfProjStatus.control()
,this.ProjStatusQueryRun());

I tried several alternations and changes but the lookup remains empty.

Any Suggestions?


Viewing all articles
Browse latest Browse all 175888

Trending Articles