Skip to Content
Former Member
Mar 18, 2008 at 11:15 PM

Change the conditions of a dataprovider with .Net on BO XIR2


If you want to change the conditions of a dataprovider .Net using commands similar to Java following:

DataProviders dps = doc.getDataProviders();


DataProvider dp = dps.getItem(i);

DataSource ds = dp.getDataSource();

Query query = dp.getQuery();

ConditionContainer cc = query.createCondition(LogicalOperator.AND);

ConditionObject co = cc.createConditionObject(ds.getHierarchies().getChildByName(filterName));

FilterCondition fc = co.createFilterCondition(Operator.EQUAL);

FilterConditionContainer fcc = cc.createFilterConditionContainer(operator);

How can I do?