Hi,
Can someone help to resolve this problem. The ExternalValue doesn't seem to work dynamically in the transformation. Here's my code:
<cms:RatingControl ID="elemRating" runat="server" Enabled="false" RatingType="Stars" CheckIfUserRated="false" CheckPermissions="true" AllowForPublic="true" ExternalValue='<%# MyFunctions.TrimText(Convert.ToString(CMS.GlobalHelper.ValidationHelper.GetDouble(GetSearchValue("DocumentRatingValue"), 0)/((CMS.GlobalHelper.ValidationHelper.GetDouble(GetSearchValue("DocumentRatings"), 0) == 0?1:CMS.GlobalHelper.ValidationHelper.GetDouble(GetSearchValue("DocumentRatings"), 1))))) %>' />
...but if I hardcode it like:
<cms:RatingControl ID="elemRating" runat="server" Enabled="false" RatingType="Stars" CheckIfUserRated="false" CheckPermissions="true" AllowForPublic="true" ExternalValue='0.73458' />
...it works and the stars appear
Please help. Thanks,
Benito