Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

Possible bug report [Menu with flat DataSource and initialCriteria]

$
0
0
Hi,

I'm using "v10.0p_2015-07-06" and have observed that when initialising a Menu with a DataSource and 'initialCriteria' specified it does not work,

I've examined the issue and have traced the issue to the initWidget method of the Menu class which looks like:

Code:

    if (this.dataSource != null && !this.hasFlatDataSource()) {
    //if (this.dataSource != null && isc.ResultTree) {

        var criteria = this.initialCriteria || this.criteria;
        ....
        var tree = this.createResultTree(criteria ...
    } else if (this.dataSource != null) {
        ....
        ds.fetchData(null, {caller:this, methodName:"flatDataLoaded"}, requestProperties);
    }

In 'else if' case it seems that 'null' is being passed to fetchData. I am fairly sure we should be passing initialCriteria so that the behaviour of initialCriteria is consistent with its documentation.

Just reporting the problem here so you can validate and include it in the next release.

Viewing all articles
Browse latest Browse all 4756

Trending Articles