Hi Isomorphic,
please note the following unexpected behaviour:
I have a client-side ComboBoxItem with
The generated SQL (so far as expected) is:
In my subclassed SQLDataSource I do:
The generated SQL looks like
where I would expect a TENANT_ID=0 condition.
This is also true for an even more explicit
The generated SQL for TENANT_ID changes when I change the TextMatchStyle of the ComboBoxItem. I think that this might be a bug (SNAPSHOT_v9.1d_2014-01-22/EVAL Deployment).
Best regards,
Blama
please note the following unexpected behaviour:
I have a client-side ComboBoxItem with
Code:
setTextMatchStyle(TextMatchStyle.SUBSTRING); setValueField("ID"); [B]//integer-field[/B] setDisplayField("NAME"); [B]// text-field[/B]
Code:
t_reseller.name LIKE '%mysearchstring%' ESCAPE '\' AND t_reseller.name IS NOT NULL
Code:
@Override public DSResponse executeFetch(DSRequest req) throws Exception { dsRequest.addToCriteria("TENANT_ID", DefaultOperators.Equals, 0); [B]// TENANT_ID is an integer-field[/B] return super.executeFetch(req); }
Code:
AND (t_reseller.tenant_id LIKE '%0%' ESCAPE '\' AND t_reseller.tenant_id IS NOT NULL)
This is also true for an even more explicit
Code:
dsRequest.addToCriteria(new AdvancedCriteria(new SimpleCriterion("TENANT_ID", DefaultOperators.Equals, 0)));
Best regards,
Blama
Comment