Hi,
I have used this examples from Ari-Soft, but it's not completely what I have need.
A) How set default value ?
How associate list of values by using a SQL Query ?
"ARI Data Tables" supports ability to use request variables in SQL query. For example you can embed "ARI Data Tables" module into an article and add the next HTML code to add filter (for example by "price" column in "products" table) in your Article :
Use this code in article content :
-----------------------------------------------------------------
<form method="post">
Min price: <input type="text" size="10" name="dtMinPrice" />
<br/><br/>
<input type="submit" value="Search" />
</form>
{aridatatables moduleId="104"}{/aridatatables}
------------------------------------------------------------------
and use the next SQL query in Ari Data Tables module:
-----------------------------------------------------------------
SELECT
*
FROM
products
WHERE
price > {$REQUEST:dtMinPrice}
-----------------------------------------------------------------
Benoit L.