You are here Support Forums
Search:  
Can I use HTML with SQLView?
Last Post 29 Jul 2010 07:46 AM by Richard Edwards. 3 Replies.
AddThis - Bookmarking and Sharing Button Printer Friendly
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
awinter
New Member
New Member
Posts:2

--
28 Jul 2010 02:29 PM  
Hi I have a very simple query which outputs a simple table, I am trying to add to one of the columns in the table links to different url's, and maybe even add more columns that will display data as pictures, random text etc...

My main thought was combining between forms and lists module and SQL View(?)
as in creating a table using forms and list and then one of the table columns for example will display data from my DB using SQL View.. is that possible?

is there a way to do that with SQL View or maybe with the pro version?

any help will be very much appreciated!
Richard Edwards
DNNStuff Founder
Veteran Member
Veteran Member
Posts:1149
Avatar

--
28 Jul 2010 02:39 PM  
Yes, you can do that in SQLView you just need to build up all the html within the sql clause appending it all in a column. For instance you could do something like this to show an html link.

SELECT '' + urlTitle = "' AS Link FROM MyTable

where urlColumn is a column with a valid url (ie. http://www.something.com) and urlTitle contains the title for the link (ie. Visit the something website)

In the SQLView Pro version it's much easier though because you can create a template report instead of using the grid report and just reference fields like this:

[urlTitle]

Of course, in the template report you'll have to build the table up yourself as well. It just hands the data into the template and you reference the data using tokens such as [EACHROW] and the column tokens (ie. [urlTitle])

If you want to try it out, download the SQLView Pro trial and install it. It won't overwrite any SQLView Free version data, they are separate products. After you install, add SQLView Pro to any page, then choose the 'Browse Repository' menu item and select the 'Template Google Chart' and you'll see how the templating works. I also have a simple demo of templating here, http://www.dnnstuff.com/Modules/SQLViewPro/SQLViewProDemos/TemplateReport/tabid/380/language/en-US/Default.aspx.



Richard Edwards
DNNStuff Founder
Did you receive excellent support? Consider leaving a testimonial
awinter
New Member
New Member
Posts:2

--
29 Jul 2010 06:58 AM  
WOW thanks alot for your help! it seems to be working fine with sql view
and I will download the pro version and test it as well.
thanks again!
Richard Edwards
DNNStuff Founder
Veteran Member
Veteran Member
Posts:1149
Avatar

--
29 Jul 2010 07:46 AM  
You're very welcome.


Richard Edwards
DNNStuff Founder
Did you receive excellent support? Consider leaving a testimonial
You are not authorized to post a reply.

Active Forums 4.1
Privacy StatementTerms Of UseCopyright (c) 2004-2012 DNNStuff