CGDevTools Forum

Welcome to the Official CGDevTools Support Community Forums.

JQRating

by George » 08 Sep 2014 13:50

Hello!
How to properly get JQRating value from server side?

delphi code
procedure TFrameArticleList.wRatingArticleJQRatingOptionsClick(Sender: TObject; AParams: TStringList);
begin
ShowNotyfication( TIWCGJQRatingOptions(Sender).Score.ToString ); // = 0
end;

v2.2.1.20
Best regards!
George
 
Posts: 486
Joined: 23 May 2013 15:50
Location: Russia, Moscow

by Jorge Sousa » 08 Sep 2014 14:04

Hi

I'm sorry this property:

property JQRating: TIWCGJQCustomRating read GetJQRating;

wasn't declared as public but protected, it's not public for future releases.

you can use this:

var Rating: TIWCGJQRating;

Rarting:= (Sender as TIWCGJQRatingOptions).Owner as TIWCGJQRating; // edited
Best Regards
CGDevTools Develop / Support Team
Home Page: http://www.cgdevtools.com
Jorge Sousa
 
Posts: 4261
Joined: 17 May 2012 09:58

by George » 08 Sep 2014 14:48

delphi code
procedure TFrameArticleList.wRatingArticleJQRatingOptionsClick(Sender: TObject; AParams: TStringList);
var
d: Double;
begin
d := ((Sender as TIWCGJQRatingOptions).Owner as TIWCGJQRating).JQRatingOptions.Score;
ShowNotyfication( d.ToString ); // Always = 0
end;
Best regards!
George
 
Posts: 486
Joined: 23 May 2013 15:50
Location: Russia, Moscow

by Jorge Sousa » 08 Sep 2014 15:45

Hi

Sorry, i misunderstood

Are you saying that JQRatingOptions.Scope is always 0? In what context?
Best Regards
CGDevTools Develop / Support Team
Home Page: http://www.cgdevtools.com
Jorge Sousa
 
Posts: 4261
Joined: 17 May 2012 09:58

by George » 08 Sep 2014 15:46

from JQRatingOptionsClick handler
Best regards!
George
 
Posts: 486
Joined: 23 May 2013 15:50
Location: Russia, Moscow

by George » 08 Sep 2014 17:09

Best regards!
George
 
Posts: 486
Joined: 23 May 2013 15:50
Location: Russia, Moscow

by Jorge Sousa » 09 Sep 2014 11:33

Hi

I'm sorry but we cannot reproduce.

d as the expected value in rating OnClick
Best Regards
CGDevTools Develop / Support Team
Home Page: http://www.cgdevtools.com
Jorge Sousa
 
Posts: 4261
Joined: 17 May 2012 09:58

by George » 09 Sep 2014 11:59

Ok, thanks!
Then i have to update CGDT and check again.
Best regards!
George
 
Posts: 486
Joined: 23 May 2013 15:50
Location: Russia, Moscow

by George » 10 Sep 2014 07:34

Hello!
I can confirm, 2.3.0.40 does not have described problem. (updated tools from 2.2.1.20).
Best regards!
George
 
Posts: 486
Joined: 23 May 2013 15:50
Location: Russia, Moscow

by Jorge Sousa » 10 Sep 2014 09:27

Hi

Thanks for letting us know
Best Regards
CGDevTools Develop / Support Team
Home Page: http://www.cgdevtools.com
Jorge Sousa
 
Posts: 4261
Joined: 17 May 2012 09:58


Return to JQRating

cron

Who is online

Users browsing this forum: No registered users and 1 guest

Contact Us.