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


Recent Events
  • 23/11/2024 Black Friday 2024

    BIG SALE, 30% discount for all our extensions. Use BF24 coupon code. Hurry up the discount is valid till 3 December.

  • 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.


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?

Representing SQL, CSV ... And what arrays?.
(1 viewing) (1) Guest
Go to bottomPage: 12
TOPIC: Representing SQL, CSV ... And what arrays?.
#46886
Representing SQL, CSV ... And what arrays?. 10 Years, 11 Months ago Karma: 0
Hello,
I represent SQL and CSV without problems, but I have a query that is very complex and I think it is impossible to represent with ARI. The columns in each row represent different data. Is it possible, from php code, after filling out some arrays which are are represented in the table?. It would be a very powerful value added to the fantastic ARI datatables module.
Greetings.
The administrator has disabled public write access.
 
#46891
Re:Representing SQL, CSV ... And what arrays?. 10 Years, 11 Months ago Karma: 760
Hello,

Do you format data in column(s) in specific way?

Regards,
ARI Soft
The administrator has disabled public write access.
 
#46896
Re:Representing SQL, CSV ... And what arrays?. 10 Years, 11 Months ago Karma: 0
thanks for the quick response.
No formatting is different columns. My problem is this:
A B C D E ...
type-1 2 4 2 5 8 ... Results of SQL to table A
type-2 1 6 8 5 8 ... Results of SQL to table B and C
type-3 4 8 6 8 9 ... Results of SQL to table D
Totals .........

type-1
type-3

type-1
type-2
.....
That can not be done with SQL alone, but if I can build on that logic arrays data structure as if it were a "CSV in memory."
I can not think of another way to do it.
Is it possible to do so?.
I guess the ARI DataTables module does something like that, first read the CSV and fill some arrays which then formats and represents.
Anyway thank you very much for responding so rĂ¡piamente.
Best regards.
The administrator has disabled public write access.
 
#46898
Re:Representing SQL, CSV ... And what arrays?. 10 Years, 11 Months ago Karma: 760
Data from a database are prepared in <joomla_directory>\modules\mod_aridatatables\includes\kernel\DataTables\Models\class.DataTablesDataSqlModel.php file. For CSV files in <joomla_directory>\modules\mod_aridatatables\includes\kernel\DataTables\Models\class.DataTablesDataCsvModel.php file. You can modify it for your needs or create a new source for PHP data.

Regards,
ARI Soft
The administrator has disabled public write access.
 
#46899
Re:Representing SQL, CSV ... And what arrays?. 10 Years, 11 Months ago Karma: 0
very grateful,
I'll try.

Best regards.
The administrator has disabled public write access.
 
#46900
Re:Representing SQL, CSV ... And what arrays?. 10 Years, 11 Months ago Karma: 0
Hello again,
Is it possible to create a new class instead of modifying an existing?.
For example, copy class.DataTablesDataArrayModel.php to class.DataTablesDataCsvModel.php and modify the latter.
Especially not to touch your code module in order to add functionality, not change it.
Best regards.
The administrator has disabled public write access.
 
Go to topPage: 12