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?

Problem making the module work
(1 viewing) (1) Guest
Go to bottomPage: 12345678
TOPIC: Problem making the module work
#59240
Re:Problem making the module work 7 Years, 4 Months ago Karma: 0
Hello
I sent sql dump the tables on email
The administrator has disabled public write access.
 
#59241
Re:Problem making the module work 7 Years, 4 Months ago Karma: 747
The extension doesn't support ability to use temporary variables in query when "Server side pagination" is enabled. Your query will work if set "Server side pagination" parameter to "No" in module settings.

Regards,
ARI Soft
The administrator has disabled public write access.
 
#59242
Re:Problem making the module work 7 Years, 4 Months ago Karma: 0
Hello,
thanks for the reply.
When I give to the server side pagination NO
the results do not appear as shown in Figure
does not function min (a.tc5) but a.tc5, but obtained results smallest
The administrator has disabled public write access.
 
#59245
Re:Problem making the module work 7 Years, 4 Months ago Karma: 747
Add alias for min(a.tc5) column. It will look like:

SELECT a.tc1, a.tc4, min(a.tc5) AS min, a.tc2, b.avatar, c.username, @curRank := @curRank + 1 AS Rank
FROM
#__chronoengine_chronoforms_datatable_treningove_casy a INNER JOIN
#__jsn_users b ON a.user_id=b.id INNER JOIN
#__users c ON a.user_id=c.id , (SELECT @curRank := 0) r
WHERE a.tc2 LIKE 'Motokáry Modrice'
GROUP BY a.user_id
ORDER BY a.tc5 ASC

Regards,
ARI Soft
The administrator has disabled public write access.
 
#59246
Re:Problem making the module work 7 Years, 4 Months ago Karma: 0
Super longer works,
but still ranks by a.id, I need to min (a.tc5)
The administrator has disabled public write access.
 
#59247
Re:Problem making the module work 7 Years, 4 Months ago Karma: 747
Try the following query:

SELECT tc1,tc4,min,tc2,avatar,username,@curRank := @curRank + 1 AS Rank
FROM
(SELECT a.tc1, a.tc4, min(a.tc5) AS min, a.tc2, b.avatar, c.username, @curRank := @curRank + 1 AS Rank
FROM
sbhgl_chronoengine_chronoforms_datatable_treningove_casy a INNER JOIN
sbhgl_jsn_users b ON a.user_id=b.id INNER JOIN
sbhgl_users c ON a.user_id=c.id
WHERE a.tc2 LIKE 'Motokáry Modrice'
GROUP BY a.user_id
ORDER BY min ASC) T, (SELECT @curRank := 0) r

Regards,
ARI Soft
The administrator has disabled public write access.
 
Go to topPage: 12345678