Hello,
I'm having trouble with a REST datasource fetch operation. I pass an AdvancedCriteria object to it so:
When running the compiled code in either Firefox or Chrome, the browser says that there are malformed characters in the request XML. I had a look at it, and the problem is here:
Why does it separate each letter into a separate node? This doesn't work. I'm using SmartGWT 2.2.
Thanks in advance for your kind reply.
I'm having trouble with a REST datasource fetch operation. I pass an AdvancedCriteria object to it so:
Code:
Criterion[] criterions = new Criterion[] {new Criterion(CRITERIA_FULLTEXT, OperatorId.ICONTAINS, value.toString())};
AdvancedCriteria criteria = new AdvancedCriteria(OperatorId.AND, criterions));
grid.fetchData(criteria, new CustomCallback() {
@Override
public void success() {
...
}
}, new CustomRequest().prompt("Reading data ..."));
Code:
<criteria>
<fieldName>__fulltext</fieldName>
<operator>iContains</operator>
<value>
<0>t</0>
<1>r</1>
<2>e</2>
<3>n</3>
<4>d</4>
<tI>2</tI>
</value>
</criteria>
Thanks in advance for your kind reply.
Comment