HI all i have requirement for SSRS report.
i have 3 parameters 1.company 2.cost center 3.job
based on this combination i need to get hcmworker details and all the parameters are multi select. for that i have written some code which is working for only company and cost center filter and its is not filtering for job .
if(dataAreaId != null)
{
hcmEmploymentQbds = query.addDataSource(tableNum(HcmEmployment));
enumerator = dataAreaId.getEnumerator();
while (enumerator.moveNext())
{
select firstonly companyinfo
where companyinfo.DataArea == enumerator.current();
qbr = hcmEmploymentQbds.addRange(fieldNum(hcmEmployment,LegalEntity));
qbr.value(int642Str(companyinfo.RecId));
}
}
if(costCenter != null)
{
costCenterQbds = hcmEmploymentQbds.addDataSource(tableNum(DefaultDimensionView));
costCenterQbds.addLink(fieldNum(HcmEmployment,DefaultDimension),fieldNum(DefaultDimensionView,DefaultDimension));
enumerator = costCenter.getEnumerator();
while (enumerator.moveNext())
{
qbr = costCenterQbds.addRange(fieldNum(DefaultDimensionView, DisplayValue));
qbr.value(enumerator.current());
}
}
if(job != null)
{
jobQbds= hcmEmploymentQbds.addDataSource(tableNum(HcmPositionWorkerAssignment));
jobQbds.addLink(fieldNum(HcmEmployment,Worker),fieldNum(HcmPositionWorkerAssignment,Worker));
hmcpositionQbds = jobQbds.addDataSource(tableNum(HcmPosition));
hmcpositionQbds.addLink(fieldNum(HcmPositionWorkerAssignment,Position),fieldNum(HcmPosition,RecId));
positionQbds = hmcpositionQbds.addDataSource(tableNum(HcmPositionDetail));
positionQbds.addLink(fieldNum(HcmPosition,RecId),fieldNum(HcmPositionDetail,Position));
enumerator = job.getEnumerator();
while (enumerator.moveNext())
{
select hcmJob where hcmJob.JobId==enumerator.current();
qbr = positionQbds.addRange(fieldNum(HcmPositionDetail, Job));
qbr.value(int642Str(hcmJob.RecId));
}
can any one help me where i can change my code to filter job also
Thanks in advance
kartheek.