<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=us-ascii" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.18882"></HEAD>
<BODY>
<DIV><SPAN class=310332301-25022010><FONT color=#000080 size=2 
face="Lucida Sans">Sorry, can't help. You'll have to figure that 
out.</FONT></SPAN></DIV><BR>
<BLOCKQUOTE 
style="BORDER-LEFT: #000080 2px solid; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px" 
dir=ltr>
  <DIV dir=ltr lang=en-us class=OutlookMessageHeader align=left>
  <HR tabIndex=-1>
  <FONT size=2 face=Tahoma><B>From:</B> Fausto Zanasi 
  [mailto:fausto.zanasi@gmail.com] <BR><B>Sent:</B> Wednesday, February 24, 2010 
  6:39 AM<BR><B>To:</B> jhyde@pentaho.com; Mondrian developer mailing 
  list<BR><B>Subject:</B> Re: [Mondrian] html Links in member ; MemberFormatter 
  problem<BR></FONT><BR></DIV>
  <DIV></DIV>OK!, Thanks for answer...
  <DIV>Can you tell me where is JPivot (WCF) class/method i have to 
modify?</DIV>
  <DIV>I am searching for "replace", "escape" ....</DIV>
  <DIV><BR></DIV>
  <DIV>Fausto</DIV>
  <DIV><BR></DIV>
  <DIV><BR><BR>
  <DIV class=gmail_quote>2010/2/24 Julian Hyde <SPAN dir=ltr>&lt;<A 
  href="mailto:jhyde@pentaho.com">jhyde@pentaho.com</A>&gt;</SPAN><BR>
  <BLOCKQUOTE 
  style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" 
  class=gmail_quote>
    <DIV>
    <DIV><SPAN><FONT color=#000080 size=2 face="Lucida Sans">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.</FONT></SPAN></DIV>
    <DIV><SPAN><FONT color=#000080 size=2 
    face="Lucida Sans"></FONT></SPAN>&nbsp;</DIV>
    <DIV><SPAN><FONT color=#000080 size=2 face="Lucida Sans">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.</FONT></SPAN></DIV>
    <DIV><SPAN><FONT color=#000080 size=2 
    face="Lucida Sans"></FONT></SPAN>&nbsp;</DIV>
    <DIV><SPAN><FONT color=#000080 size=2 
    face="Lucida Sans">Julian</FONT></SPAN></DIV><BR>
    <BLOCKQUOTE 
    style="BORDER-LEFT: #000080 2px solid; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px" 
    dir=ltr>
      <DIV dir=ltr lang=en-us align=left>
      <HR>
      <FONT size=2 face=Tahoma><B>From:</B> <A 
      href="mailto:mondrian-bounces@pentaho.org" 
      target=_blank>mondrian-bounces@pentaho.org</A> [mailto:<A 
      href="mailto:mondrian-bounces@pentaho.org" 
      target=_blank>mondrian-bounces@pentaho.org</A>] <B>On Behalf Of </B>Fausto 
      Zanasi<BR><B>Sent:</B> Tuesday, February 23, 2010 8:38 AM<BR><B>To:</B> <A 
      href="mailto:mondrian@pentaho.org" 
      target=_blank>mondrian@pentaho.org</A><BR><B>Subject:</B> [Mondrian] html 
      Links in member ; MemberFormatter problem<BR></FONT><BR></DIV>
      <DIV>
      <DIV></DIV>
      <DIV class=h5>
      <DIV></DIV><SPAN 
      style="BORDER-COLLAPSE: collapse; FONT-FAMILY: arial, sans-serif; FONT-SIZE: 13px">Hi, 

      <DIV>i am using Mondrina with jpivot.<BR>
      <DIV>my goal is a member value with a html link (tag &lt;a 
      href="..."&gt;).</DIV>
      <DIV>I try to use&nbsp;</DIV>
      <DIV><BR></DIV>
      <DIV>
      <DIV>public class myLevelFormatter implements 
      mondrian.olap.MemberFormatter {</DIV>
      <DIV>&nbsp;&nbsp; &nbsp;public String formatMember(mondrian.olap.Member 
      member) {</DIV>
      <DIV><SPAN style="WHITE-SPACE: pre"></SPAN>return "&lt;a href=' ...'&gt; 
      foo...&lt;/a&gt;";</DIV>
      <DIV>&nbsp;&nbsp; &nbsp;}</DIV>
      <DIV>}</DIV></DIV>
      <DIV><BR></DIV>
      <DIV>It's working BUT the chars "&lt;", "&gt;" are translated in &amp;lt; 
      ...</DIV>
      <DIV>and the browser does not show a link but a string "&lt;a href=' 
      ...'&gt; foo...&lt;/a&gt;".</DIV>
      <DIV><BR></DIV>
      <DIV>Someone can me help ?</DIV>
      <DIV>May be there is another way to obtain a table with links ?</DIV>
      <DIV><BR></DIV>
      <DIV>Thanks</DIV>
      <DIV>F.Zanasi</DIV></DIV></SPAN></DIV></DIV></BLOCKQUOTE></DIV><BR>_______________________________________________<BR>Mondrian 
    mailing list<BR><A 
    href="mailto:Mondrian@pentaho.org">Mondrian@pentaho.org</A><BR><A 
    href="http://lists.pentaho.org/mailman/listinfo/mondrian" 
    target=_blank>http://lists.pentaho.org/mailman/listinfo/mondrian</A><BR><BR></BLOCKQUOTE></DIV><BR></DIV></BLOCKQUOTE></BODY></HTML>