[Mondrian] html Links in member ; MemberFormatter problem

Fausto Zanasi fausto.zanasi at gmail.com
Wed Feb 24 09:38:39 EST 2010


OK!, Thanks for answer...
Can you tell me where is JPivot (WCF) class/method i have to modify?
I am searching for "replace", "escape" ....

Fausto



2010/2/24 Julian Hyde <jhyde at pentaho.com>

>  There isn't a way that I know of. JPivot is doing the correct thing and
> escaping everything safely for HTML to prevent HTML injection.
>
> I suppose you could create a new property, say RAW_HTML. If it is true,
> JPivot would output the formatted value without escaping for HTML. No
> changes needed to Mondrian code, minor changes to the MDX of your reports,
> and some code changes to JPivot.
>
> Julian
>
>  ------------------------------
> *From:* mondrian-bounces at pentaho.org [mailto:mondrian-bounces at pentaho.org]
> *On Behalf Of *Fausto Zanasi
> *Sent:* Tuesday, February 23, 2010 8:38 AM
> *To:* mondrian at pentaho.org
> *Subject:* [Mondrian] html Links in member ; MemberFormatter problem
>
> Hi,
> i am using Mondrina with jpivot.
> my goal is a member value with a html link (tag <a href="...">).
> I try to use
>
>  public class myLevelFormatter implements mondrian.olap.MemberFormatter {
>     public String formatMember(mondrian.olap.Member member) {
> return "<a href=' ...'> foo...</a>";
>     }
> }
>
> It's working BUT the chars "<", ">" are translated in &lt; ...
> and the browser does not show a link but a string "<a href=' ...'>
> foo...</a>".
>
> Someone can me help ?
> May be there is another way to obtain a table with links ?
>
> Thanks
> F.Zanasi
>
>
> _______________________________________________
> Mondrian mailing list
> Mondrian at pentaho.org
> http://lists.pentaho.org/mailman/listinfo/mondrian
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.pentaho.org/pipermail/mondrian/attachments/20100224/8e4a5008/attachment.html 


More information about the Mondrian mailing list