Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

AspDotNetStoreFront
  Ads  
Aspose - The .NET & Java component publisher
 


  Sponsors  

Meet Our Sponsors

MaximumASP
SourceGear - Tools for Developers
.: CounterSoft :.
telerik
ExactTarget email software solutions
Merak Mail Server
 


DotNetNuke Forums
 
  Forum  DotNetNuke® Pro...  Reports Module ...  Visualiser Issues
Previous Previous
 
Next Next
New Post 9/19/2007 7:02 PM
User is offline Edmedia
128 posts
www.edmedia.com.au
9th Ranked


Visualiser Issues 

HI

 

a few questions:

First: how do I create a report that displays a new record in each cell of a table.. for instance currently if I do this

[FieldName] [FieldName]

it returns this

result1 result1
result2 result2
result3 result3

 

but what I need is this

result1 result2
result3 result4
result5 result5

how do I do it??

 

 

Second question does the HTML file automatically use the skin CSS?

if not how do I connect the CSS in a similar manrrer as using the <%=skinpath%>?

 

Third question how do I link images fron the portal root file/folder to the transformed HTML page?

Fourth Question does the HTML page only need the tags between to body tags or does the uploaded HEML file need to be a fully taged page: <html><head></head><body></body></html>  etc..?

thanks

 
New Post 9/24/2007 10:20 PM
User is offline Edmedia
128 posts
www.edmedia.com.au
9th Ranked


Re: Visualiser Issues 

Just putting this question back on top..I still need an answer 

 

regards

 
New Post 9/25/2007 12:10 AM
User is offline Andrew Nurse
366 posts
8th Ranked






Re: Visualiser Issues 

1) The HTML Visualizer does not support this in the current version. The more powerful XSLT Visualizer should be able to do what you need. If you are running the most recent version of Reports, you can see a sample of the XML that is passed to the stylesheet provided in the Visualizer by going to the Module Settings page and selecting "Show Xml Source". I don't know a lot about XSLT but maybe others can provide more details, or there are plenty of XSLT resources out on the web.

2) It should, it is basically injected into the page, so it will use all the CSS files applied to that particular page

3) You'll have to use relative urls, using the DesktopModules/Reports folder as a base, so to get back to the root you prefix your url with '../../'. For example (~/Portals/0/images/foo.gif => ../../Portals/0/images/foo.gif). This may be updated in a future version

4) Just the content between the body tags.


Andrew Nurse
DotNetNuke Core Team Member and Reports Module Project Lead
Microsoft Certified Professional Developer

 
New Post 9/25/2007 8:54 PM
User is offline Edmedia
128 posts
www.edmedia.com.au
9th Ranked


Re: Visualiser Issues 

Andrew thanks for the reply.  Ive sorted out how to do what I want in XSL (outside of DNN) but dont know how to attach the DNN data source to the XSL?

This is what I'm doing

<?xml version="1.0" encoding="utf-8"?><!-- DWXMLSource="data.xml" -->

<!DOCTYPE xsl:stylesheet  [
 <!ENTITY nbsp   "&#160;">
 <!ENTITY copy   "&#169;">
 <!ENTITY reg    "&#174;">
 <!ENTITY trade  "&#8482;">
 <!ENTITY mdash  "&#8212;">
 <!ENTITY ldquo  "&#8220;">
 <!ENTITY rdquo  "&#8221;">
 <!ENTITY pound  "&#163;">
 <!ENTITY yen    "&#165;">
 <!ENTITY euro   "&#8364;">
]>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html" encoding="utf-8"/>
<xsl:include href="FillerCells.xsl"/>

<!-- Page configuration variables -->
<xsl:variable name="cellsPerRow" select="3"/>
<xsl:variable name="imageWidth" select="120"/>
<xsl:variable name="imageHeight" select="160"/>
<xsl:template match="/">

<table border="1" cellspacing="3" cellpadding="3">
     
     <xsl:apply-templates select="DocumentElement"/>
    </table>


</xsl:template>


<!-- Build Careers List Rows -->
<xsl:template match="DocumentElement">
 <xsl:for-each select="QueryResults[position() mod $cellsPerRow = 1]">
  <tr>
  <xsl:apply-templates
   select=".|following-sibling::QueryResults[position() &lt; $cellsPerRow]"/>
  </tr>
 </xsl:for-each>
</xsl:template>

<!-- Build Careers List Cells -->
<xsl:template match="QueryResults">
 <td class="PhotoCell" align="center">
   
   
    <div align="center" class="CareerButtons">
   
<table border="1" cellspacing="0" cellpadding="0">
  <tr>
    <td width="8px"  class="BL_ButtonLeft"></td>
    <td class="BL-buttonLable_BG">
   
           <a class="ButtonLink"><xsl:attribute name="href">../default.aspx?tabid=<xsl:value-of select="TabID" /></xsl:attribute><xsl:value-of select="TabName" /></a>
   
    </td>
    <td width="7px" class="BL_ButtonRight"></td>
  </tr>
</table>

</div>
   
  
  <br clear="all"/>
  </td>
 <xsl:if test="(position() = last()) and (position() &lt; $cellsPerRow)">
  <xsl:call-template name="FillerCells">
   <xsl:with-param name="cellCount" select="$cellsPerRow - position()"/>
  </xsl:call-template>
 </xsl:if>
</xsl:template>


</xsl:stylesheet>

 

But when I try to use it in DNN I get the following error

For security reasons DTD is prohibited in this XML document. To enable DTD processing set the ProhibitDtd property on XmlReaderSettings to false and pass the settings into XmlReader.Create method.

i have no Idea what that mean and how to fix it..

  1. So how do I pass the DNN datasource to my XLS?
  2. Can I use the XSL in DNN reports that way I'm doing it?
  3. How do I fix the DTD  issue/? or is it caued by the other problems?

regards

 
New Post 9/25/2007 10:27 PM
User is offline Stefan Cullmann
1572 posts
5th Ranked








Re: Visualiser Issues 
  1. You don't need to pass the data, you don#t need to define any XMLSource/ data island etc in your stylesheet.
  2. I am not sure whether the inculde is allowed inside reports, and you need to remove the DTD entity definition.
    All other code looks fine and should work if it matches the XML source
  3. Remove
    <!DOCTYPE xsl:stylesheet  [
     <!ENTITY nbsp   "&#160;">
     <!ENTITY copy   "&#169;">
     <!ENTITY reg    "&#174;">
     <!ENTITY trade  "&#8482;">
     <!ENTITY mdash  "&#8212;">
     <!ENTITY ldquo  "&#8220;">
     <!ENTITY rdquo  "&#8221;">
     <!ENTITY pound  "&#163;">
     <!ENTITY yen    "&#165;">
     <!ENTITY euro   "&#8364;">
    ]>
    Use &#160; instead of &nbsp; inside your XSL script... I don't see any use of these entities in this part of the script, though it may be used in your include "FillerCells.xsl".

 


Stefan Cullmann - stefan.cullmann [at] dotnetnuke.com
form and List will be the successor of the User Defined Table module.
----------------------------------------------------------------------
Do you want to import external data to form and List /User Defined Table?
Check out http://www.codeplex.com/Csv2UDTImport
 
Previous Previous
 
Next Next
  Forum  DotNetNuke® Pro...  Reports Module ...  Visualiser Issues
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, please observe the following posting guidelines:

1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


Alliance Systems & Programming Inc
Alliance is not just our name... it's how we do business. We partner with our clients, learning their business processes and standards and then applying our expertise to help them improve their workflow and profitability.
www.Alliancesys.com
Customer Connect
Customer Connect provides cutting edge solutions that deliver sales, marketing and customer service results.
www.customer-connect.com
TechNexxus
Business process and technology sourcing solutions delivering superior people, process and value. We have used, and continue to use, DNN successfully in numerous client projects to deliver exceptional value. We are proud to support the DNN team and community.
www.technexxus.com

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP