Hi,
currently I'm trying to access a filter of a dataset and update the value list.
I'm already able to access it like that:
var dshandle = reportContext.getDesignHandle().findDataSet("WorkOrders");
var fiterator = dshandle.filtersIterator();
while( fiterator.hasNext() )
{
filterHandle = fiterator.next();
expr = filterHandle.getValue1ExpressionList();
valueList = expr.getListValue();
}
Now I want to overwrite the valueList with
expr.setListValue(myList);
But I don't know how. Since I don't now how to specify the right type in javascript.
When I do something like that:
var customFilter = new Array("unknown", "within specification", "out of specification");
expr.setListValue(customFilter);
I get an exception because the method needs an other type ( org.eclipse.birt.report.model.api.Expression)
But how can I create this kind of type in javascript??!