Hi Team,
I am using customSelectExpression as given below and executing the call on service but the field is always false.
On service :
I have tried removing sqlStorageStrategy and using type integer instead of boolean but it's always false. Am I missing any property here. Kindly suggest
I am using customSelectExpression as given below and executing the call on service but the field is always false.
Code:
<field name="pair" type="boolean" sqlStorageStrategy="integer" customSelectExpression="IFNULL((select pair from price where price_id=product_price.price_id),0)"> </field> ListGridField pair = new ListGridField("pair");
Code:
LOGGER.debug(SQLDataSource.getSQLClause(SQLClauseType.All, dsRequest)); /*if i run this query on mysql then the data comes correct , boolean is true as in DB*/ DSResponse response= dsRequest.execute(); /*this response always contains the field as false*/
I have tried removing sqlStorageStrategy and using type integer instead of boolean but it's always false. Am I missing any property here. Kindly suggest
Comment