[Mondrian] html Links in member ; MemberFormatter problem

Julian Hyde jhyde at pentaho.com
Thu Feb 25 01:05:27 EST 2010


Sorry, can't help. You'll have to figure that out.


  _____  

From: Fausto Zanasi [mailto:fausto.zanasi at gmail.com] 
Sent: Wednesday, February 24, 2010 6:39 AM
To: jhyde at pentaho.com; Mondrian developer mailing list
Subject: Re: [Mondrian] html Links in member ; MemberFormatter problem


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/a6408fbd/attachment.html 


More information about the Mondrian mailing list