Home News Contact Us Forum About Us Demos Products F.A.Q.
Shopping Cart
You currently have 0 items in your cart.


Recent Events
  • 31/12/2023 New Year SALE

    We are glad to announce New Year SALE. 25% discount for all our extensions. Use NY24 coupon code. Hurry up the discount is valid till 7 January.

  • 21/11/2023 BLACK FRIDAY 23 is coming

    BIG SALE, 35% discount for all our extensions. Use BF23 coupon code. Hurry up the discount is valid till 27 November.


2Checkout.com, Inc. is an authorized retailer of goods and services provided by ARI Soft. 2CheckOut




Follow us on twitter



Welcome, Guest
Please Login or Register.    Lost Password?

Form integration with data table
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: Form integration with data table
#38845
Form integration with data table 11 Years, 3 Months ago Karma: 0
I have a table with data spanning more than one year and want the user to input a year to select only that year.

Adapting the code given in a previous thread (www.ari-soft.com/ARI-Data-Tables/35625-Form-integration-to-Ari-Data-Tables.html), I have the following:
HTML in article
Code:

<p>Select year (to reset, empty filter and submit)</p>
<form action="#" method="post">Year:<input name="start" value="1895" type="text" />&nbsp;&nbsp;<input type="submit" value="Select" />&nbsp;</form>
<p>{aridatatables moduleId="136"}{/aridatatables}</p>


SQL query
Code:

SELECT 
year, 
image_no, 
surname, 
first_names, 
remarks 
FROM 
ket4k_ccd_willowmore
WHERE 
({$REQUEST:start|empty:''} = '' OR year = {$REQUEST:start|empty:''})


Article: http://www.eggsa.org/sarecords/index.php/civil-registration-deaths/212-willowmore-civil-deaths

With many entries in the table it becomes very slow when loading. I have server side pagination switched off because it does not seem to be compatible with the above.
To speed up the loading I'd like it to only load data for ONE year on loading. I added value="1895" in the input form, hoping it will only load that year, but it loads all the data on start up.
The following article has more entries in the table nad one can see how it effects the loading speed: www.eggsa.org/sarecords/index.php/civil-registration-deaths/219-albany-civil-deaths

Any suggestions?

Thanks,
Corney
The administrator has disabled public write access.
 
#38846
Re:Form integration with data table 11 Years, 3 Months ago Karma: 748
Hello,

Send your order number by email please.

Regards,
ARI Soft
The administrator has disabled public write access.
 
#38848
Re:Form integration with data table 11 Years, 3 Months ago Karma: 748
Use the following SQL query:

Code:


SELECT 
year, 
image_no, 
surname, 
first_names, 
remarks 
FROM 
ket4k_ccd_willowmore
WHERE 
year = {$REQUEST:start|empty:'1895'}



Regards,
ARI Soft
The administrator has disabled public write access.
 
#38852
Re:Form integration with data table 11 Years, 3 Months ago Karma: 0

Yippe, works fine.

Thanks, you deserve another kharma point +1.
The administrator has disabled public write access.
 
Go to topPage: 1