Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » setting filter in javascript
setting filter in javascript [message #1022801] Fri, 22 March 2013 14:46
Daniel W is currently offline Daniel WFriend
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:Exception in BIRT engine logged
Goto Forum:
  


Current Time: Sat Apr 20 02:37:34 GMT 2024

Powered by FUDForum. Page generated in 0.03374 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top