I want to pass a custom value to the <whereClause>. This field is NOT a field in my table. So it should only be used there.
What is the correct way to do this?
My approach is to set the field, e.g. myField, as a criteria. and use the criteria with $advancedCriteria.myField
This seems to work without having to create the <field name="myField">. But is this also correct? This inserts a '1'='1' in my where statement, since the field "myField" is unknown.
Or should I create a <field name="myField" customSQL="true"> in this case ?
If this is correct, do I need then <customFields> in my operation in order to avoid creating myField in the select ?
Using smartgwt 6.1p
What is the correct way to do this?
My approach is to set the field, e.g. myField, as a criteria. and use the criteria with $advancedCriteria.myField
This seems to work without having to create the <field name="myField">. But is this also correct? This inserts a '1'='1' in my where statement, since the field "myField" is unknown.
Or should I create a <field name="myField" customSQL="true"> in this case ?
If this is correct, do I need then <customFields> in my operation in order to avoid creating myField in the select ?
Using smartgwt 6.1p
Comment