Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...How do i display sql reports on a public page?How do i display sql reports on a public page?
Previous
 
Next
New Post
12/19/2008 11:56 AM
 

I've wrestled with rss for months now as a way of getting announcements from different areas of my site gathered up on the home page and am giving up on it for the time being. What I'm thinking now is that I can write an sql statement to get the latest entries from announcement modules from around my site and re-post them on the home page as a sql report. This begs the next obvious question, how do I get a sql driven report to show up in a publicly viewable module that will keep looking for the newest announcements and post them when the page is refreshed? Is there a module that wlready does this?

Thanks

Mike


Michael Emond
City of Manchester NH
www.manchesternh.gov
 
New Post
12/19/2008 12:29 PM
 

Mike,

Have a look at the Reports Module, just have it run query on page load!


-Mitchel Sellers
Microsoft MVP, ASPInsider, DNN MVP
CEO/Director of Development - IowaComputerGurus Inc.
LinkedIn Profile

Visit mitchelsellers.com for my mostly DNN Blog and support forum.

Visit IowaComputerGurus.com for free DNN Modules, DNN Performance Tips, DNN Consulting Quotes, and DNN Technical Support Services
 
New Post
12/19/2008 1:15 PM
 

Great advice as always. Thanks Mitch!

Mike


Michael Emond
City of Manchester NH
www.manchesternh.gov
 
New Post
12/26/2008 4:05 PM
 

Ok, so I've been chipping away at this and my report is coming out awesome. Its gathering announcements and email newsletters from across the site and headlining them in this report that will later be my home page 'headlines' I also have a html template visualizer formatting the report content. My question is is there a way to render the html found in the columns I'm querying on the final report page? Its currently displaying all the content as well as the html tags. Can this be done on the visualizer template? I tried using 'set markup html on' but it didn't seem to work with the query (my version of mssql didn't seem to recognize it), but then again I could be using it wrong.

Thanks - sql below...
Mike

select [date],headline,content

from (
    select top 2 sentdatetime as [date],subject as headline,CAST(PERSONALIZEDNEWSLETTER AS Nvarchar(4000)) AS CONTENT
    from datasprings_optinemailpreviousnewsletter
    order by sentdatetime desc
) as a

union

select [date],headline,content

from (
select top 10 createddate as [date],title as headline,cast(description as nvarchar(4000)) as content
from announcements
where moduleid = '3197'
or moduleid = '2960'
or moduleid = '3485'
or moduleid = '3093'
or moduleid = '2742'
or moduleid = '3570'
or moduleid = '3199'
order by createddate desc
) as b
order by [date] desc


Michael Emond
City of Manchester NH
www.manchesternh.gov
 
New Post
12/26/2008 5:16 PM
 

Mike,

You may want to look at SQLGridSelectedView to address the HTML in the Database issue.  Check out www.tressleworks.ca for a Free version - a more advanced version is available for a small subscription fee.

Paul.

 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...How do i display sql reports on a public page?How do i display sql reports on a public page?


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, 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 DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out