Menu

problem with exporting to excel

Anil
2005-10-10
2012-10-09
  • Anil

    Anil - 2005-10-10

    how to evaluate html tags in <display:column> ?

    I am getting html tag "<a href>" in my excel sheet when i export to excel. But in webform its working fine.

    <c:choose>
    <c:when test="${!row.legacy}">
    <a href="javascript:toApproveActionPage('<c:out value='${row.crProcessRequest.id}'/>');"><font size="1">Approve</font></a>
    |
    <a href="javascript:toLogDenyActionPage('<c:out value='${row.crProcessRequest.id}'/>','<c:out value='${row.crProcessRequest.orderNumber}'/>');"><font size="1">Deny</font></a>
    </c:when>
    <c:otherwise>
    Approve | Deny
    </c:otherwise>
    </c:choose> <c:out value="${row.crProcessRequest.orderNumber}" />
    </a>
    </c:when>
    <c:otherwise>
    <c:out value="${row.crProcessRequest.orderNumber}" />
    </c:otherwise>
    </c:choose>

        &lt;/display:column&gt;
    

    can anybody help me..

     
    • Tran Huu Tai

      Tran Huu Tai - 2007-02-09

      You may try to set this property:
      <display:setProperty name="export.decorated" value="false"/>

      Hope this help

       
    • Anil

      Anil - 2005-10-10

      am getting html tag "<a href>" in my excel sheet when i export to excel. But in webform its working fine.

      <display:column title="Order # <br/>(Click for Exceptions)" sortable="true" headerClass="sortable">

              &lt;c:choose&gt;
                  &lt;c:when test=&quot;${!row.legacy}&quot;&gt;
                      &lt;c:url value=&quot;&quot; var=&quot;order&quot;/&gt;
                          &lt;a href=&quot;javascript:toErrorsPage('${row.crProcessRequest.orderNumber}');&quot;&gt;
                          &lt;c:out value=&quot;${row.crProcessRequest.orderNumber}&quot; /&gt;
                      &lt;/a&gt;
                  &lt;/c:when&gt;
                  &lt;c:otherwise&gt;
                      &lt;c:out value=&quot;${row.crProcessRequest.orderNumber}&quot; /&gt;
                  &lt;/c:otherwise&gt;
              &lt;/c:choose&gt;
      
          &lt;/display:column&gt;
      
       

Log in to post a comment.