[SAMPLE APP][DATA-CONTROL-CONSUMER] Fix in data_control_sql_select function's description
authorMichal Skorupinski <m.skorupinsk@samsung.com>
Wed, 21 Oct 2015 08:04:21 +0000 (10:04 +0200)
committerMichal Skorupinski <m.skorupinsk@samsung.com>
Wed, 21 Oct 2015 13:23:20 +0000 (15:23 +0200)
Change-Id: I44509e6eea76a5da69f81492320353d4f43d6a66
Signed-off-by: Michal Skorupinski <m.skorupinsk@samsung.com>
org.tizen.sampledescriptions/html/mobile_n/data_control_consumer_sd_mn.htm

index 4de0c88..39ca6ac 100644 (file)
@@ -488,7 +488,7 @@ data_control_sql_set_data_id(s_info.provider, data_id);
 <pre class="prettyprint">
 data_control_sql_select(data_control_h provider, char **column_list, int column_count, const char *where, const char *order, int *request_id);
 </pre>
-should be used. The <span style="font-family: Courier New,Courier,monospace">select_array</span> parameter is used as the text after the SELECT keyword in a sql query. The <span style="font-family: Courier New,Courier,monospace">select_array</span> is an array of strings. The <span style="font-family: Courier New,Courier,monospace"><a href = "#ui-struct-sql">column_name_entry</a></span> entry field in the sql view can be used as the input for the <span style="font-family: Courier New,Courier,monospace">select_array</span>. Note however that the string from the entry has to be converted (using the <span style="font-family: Courier New,Courier,monospace">elm_entry_markup_to_utf8()</span>) from markup to utf8 format. If not, some characters, e.g '&lt;', 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 <span style="font-family: Courier New,Courier,monospace">select_array_count</span> variable is the count of <span style="font-family: Courier New,Courier,monospace">select_array</span> elements. The <span style="font-family: Courier New,Courier,monospace">final_where</span> parameter is a string. It can contain any correct sql WHERE entry. The <span style="font-family: Courier New,Courier,monospace"><a href = "#ui-struct-sql">where_entry</a></span> 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 <span style="font-family: Courier New,Courier,monospace"><a href = "#ui-struct-sql">sort_column_entry</a></span> field. The <span style="font-family: Courier New,Courier,monospace">order_text</span> parameter is a concatenation of the <span style="font-family: Courier New,Courier,monospace">order_text</span> string and an appropriate sort text, e.g. 'Num ASC'.
+should be used. The <span style="font-family: Courier New,Courier,monospace">column_list</span> parameter is used as the text after the SELECT keyword in a sql query. The <span style="font-family: Courier New,Courier,monospace">column_list</span> is an array of strings. The <span style="font-family: Courier New,Courier,monospace"><a href = "#ui-struct-sql">column_name_entry</a></span> entry field in the sql view can be used as the input for the <span style="font-family: Courier New,Courier,monospace">column_list</span>. Note however that the string from the entry has to be converted (using the <span style="font-family: Courier New,Courier,monospace">elm_entry_markup_to_utf8()</span>) from markup to utf8 format. If not, some characters, e.g '&lt;', 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 <span style="font-family: Courier New,Courier,monospace">column_count</span> variable is the count of <span style="font-family: Courier New,Courier,monospace">column_list</span> elements. The <span style="font-family: Courier New,Courier,monospace">where</span> parameter is a string. It can contain any correct sql WHERE entry. The <span style="font-family: Courier New,Courier,monospace"><a href = "#ui-struct-sql">where_entry</a></span> 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 <span style="font-family: Courier New,Courier,monospace"><a href = "#ui-struct-sql">sort_column_entry</a></span> field. The <span style="font-family: Courier New,Courier,monospace">order</span> parameter is a concatenation of the <span style="font-family: Courier New,Courier,monospace">sort_column_entry</span> string and an appropriate sort text, e.g. 'Num ASC'.
 </p>
 
 <p id = "consumer-sql-insert-request">Insert request</p>