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

TextMatchStyle substring not working anymore?

$
0
0
Using: SmartClient/SmartGWT Framework (v8.3p_2014-08-19/PowerEdition Deployment 2014-08-19)

I changed to the nightly above recently. Now there is a different behaviour that screws up my filter editors in certain SelectItems.
When I type something in the filter editor of a SelectItem that has multiple columns (ie. a dropdown listgrid), it sends the following request to the server,

Note the textMatchStyle "substring".

Code:

{
    dataSource:"Person",
    operationType:"fetch",
    componentId:"isc_PickListMenu_3",
    data:{
        firstname:"E"
    },
    startRow:0,
    endRow:75,
    sortBy:[
        "firstname"
    ],
    textMatchStyle:"substring",
    resultSet:[ResultSet ID:isc_ResultSet_7 (created by: isc_PickListMenu_3)],
    callback:{
        caller:[ResultSet ID:isc_ResultSet_7 (created by: isc_PickListMenu_3)],
        methodName:"fetchRemoteDataReply"
    },
    willHandleError:true,
    showPrompt:false,
    prompt:"Rijen die voldoen aan de zoektermen worden opgehaald",
    oldValues:{
        firstname:"E"
    },
    requestId:"Person$62715",
    internalClientContext:{
        requestIndex:{
            Class:"Number",
            formatter:"toString",
            localeStringFormatter:"toString",
            localeProperties:Obj
        }
    },
    fallbackToEval:false,
    bypassCache:true
}

In my IDACall subclass handling my requests, I have the line
Code:

...
if (o instanceof DSRequest) {
        DSRequest r = (DSRequest) o;
        AdvancedCriteria c = r.getAdvancedCriteria();
        ...
}
...

It turns out that this AdvancedCriteria resembles the following:
[and:[{firstname equals E}]]

This 'equals' used to be 'iContains' or something similar, because in a
previous nightly I tried (i think somewhere around january 2013 mark) it
certainly worked.

Is this a regression? How can I get the old behaviour back (without resorting
to the older nightly please)

Viewing all articles
Browse latest Browse all 4756

Trending Articles