define sName, sSearch stringlet sSearch = "%", sName.toLowerCase().trim(), "%"select * from customers where lower(accname) like sSearch
CONSTRUCT where_clause ON column1,column2,column3,column4 FROM s_form.column1, s_form.column2, s_form.column3, s_form.column4 BEFORE CONSTRUCT## Apply SQL functions according to user preferences and according to table/column restrictions (if conditions to be added later)# CALL CONSTRUCTDIALOG.applyFunction("column1","LOWER") CALL CONSTRUCTDIALOG.applyFunction("column3","LOWER") END CONSTRUCT (CONSTRUCTDIALOG would be the ui.Dialog but the method applyFunction only applies to dialog while in CONSTRUCT statement)
DIALOG CONSTRUCT BY NAME sql_field1 ON field1 END CONSTRUCT CONSTRUCT BY NAME sql_field2 ON field1 END CONSTRUCT...END DIALOGLET sql_field1 = parse(sql_field1)LET sql_field2 = parse(sql_field2)
CONSTRUCT where_clause ON column1,column2,column3,column4 FROM s_form.column1, s_form.column2, s_form.column3, s_form.column4END CONSTRUCT
LET where_clause = dynamic_construct("column1,column2,column3,column4","s_form.column1, s_form.column2, s_form.column3, s_form.column4")