From: Michal Skorupinski
data_control_sql_select(data_control_h provider, char **column_list, int column_count, const char *where, const char *order, int *request_id);
-should be used. The select_array parameter is used as the text after the SELECT keyword in a sql query. The select_array is an array of strings. The column_name_entry entry field in the sql view can be used as the input for the select_array. Note however that the string from the entry has to be converted (using the elm_entry_markup_to_utf8()) from markup to utf8 format. If not, some characters, e.g '<', cannot be used. After the conversion, '\n' can be used as a delimiter when the text from the entry field is transformed into the array of strings. The select_array_count variable is the count of select_array elements. The final_where parameter is a string. It can contain any correct sql WHERE entry. The where_entry entry field is used to provide an input for this parameter. Of course this text (like any text from an entry widget) has to be converted to utf8 as well. If one of the sort methods is chosen using the radiobuttons, a column name has to be provided using the sort_column_entry field. The order_text parameter is a concatenation of the order_text string and an appropriate sort text, e.g. 'Num ASC'.
+should be used. The column_list parameter is used as the text after the SELECT keyword in a sql query. The column_list is an array of strings. The column_name_entry entry field in the sql view can be used as the input for the column_list. Note however that the string from the entry has to be converted (using the elm_entry_markup_to_utf8()) from markup to utf8 format. If not, some characters, e.g '<', cannot be used. After the conversion, '\n' can be used as a delimiter when the text from the entry field is transformed into the array of strings. The column_count variable is the count of column_list elements. The where parameter is a string. It can contain any correct sql WHERE entry. The where_entry entry field is used to provide an input for this parameter. Of course this text (like any text from an entry widget) has to be converted to utf8 as well. If one of the sort methods is chosen using the radiobuttons, a column name has to be provided using the sort_column_entry field. The order parameter is a concatenation of the sort_column_entry string and an appropriate sort text, e.g. 'Num ASC'.
Insert request