Page 1 of 1
JQRating

Posted:
08 Sep 2014 13:50
by George
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
Re: JQRating

Posted:
08 Sep 2014 14:04
by Jorge Sousa
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
Re: JQRating

Posted:
08 Sep 2014 14:48
by George
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;
Re: JQRating

Posted:
08 Sep 2014 15:45
by Jorge Sousa
Hi
Sorry, i misunderstood
Are you saying that JQRatingOptions.Scope is always 0? In what context?
Re: JQRating

Posted:
08 Sep 2014 15:46
by George
from JQRatingOptionsClick handler
Re: JQRating

Posted:
08 Sep 2014 17:09
by George
Re: JQRating

Posted:
09 Sep 2014 11:33
by Jorge Sousa
Hi
I'm sorry but we cannot reproduce.
d as the expected value in rating OnClick
Re: JQRating

Posted:
09 Sep 2014 11:59
by George
Ok, thanks!
Then i have to update CGDT and check again.
Re: JQRating

Posted:
10 Sep 2014 07:34
by George
Hello!
I can confirm, 2.3.0.40 does not have described problem. (updated tools from 2.2.1.20).
Re: JQRating

Posted:
10 Sep 2014 09:27
by Jorge Sousa
Hi
Thanks for letting us know