Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BIRT » setting filter in javascript
setting filter in javascript [message #1022801] Fri, 22 March 2013 10:46
Daniel W is currently offline Daniel W
Messages: 8
Registered: March 2013
Junior Member
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??!
Previous Topic:Using POST to pass parameters to birt instead GET
Next Topic:Raport don't work
Goto Forum:
  


Current Time: Wed Apr 16 23:54:45 EDT 2014

Powered by FUDForum. Page generated in 0.02606 seconds