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...formatted SQL Driven Optionsformatted SQL Driven Options
Previous
 
Next
New Post
5/26/2009 8:16 PM
 

Hello All,

I am working on creating a form that will display a listing of products that gets dynamically populated.  The form is working great with the exception of the formatting of the data that comes back.

The SQL statement that I'm using is: select (ModelNum + space(4) + Frequency + space(4) + [Isolation]) as option, (ModelNum + space(4) + Frequency + space(4) + [Isolation]) as value from dbo.MTC_Products.

When I execute the statement in SQL Server, it returns the specified formatted string (as exepected).  When I execute the SQL statement in DNN Host / SQL, the return strips out the spacing.  Is there some kind of DNN configuration setting somewhere?

Thank you for your time.

Kind regards,
-Shane

 
New Post
5/27/2009 3:28 AM
 

Hi,

I doubt that it matters.  Host/SQL will not be involved when you issue the statement from your module.

Issue the statement you want and process the results as you need to.


Best wishes,
- Richard
Agile Development Consultant, Practitioner, and Trainer
www.dynamisys.co.uk
 
New Post
5/27/2009 4:12 AM
 

 please be aware, that Host:: SQL does output result in HTML, which might not display multiple blanks (instead of nbsp)


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
5/27/2009 2:38 PM
 

Shane,

HTML does "see" one or more space character as just one space character on output. 

Try replacing the space(4) with  '    '  This will result in most browser issuing a space character (nbsp = non-breaking space) -- also depends on your font as to the amount of space actually displayed.  Use a mono-spaced font like Courier New, instead of Arial or Tahoma (for example).

Hope that helps
Paul.

 
New Post
5/31/2009 9:01 PM
 

Replacing the space(4) with '   &nbsp' worked like a champ!

Thank you all so much for your time and knoweledge.

Best Regards,
-Shane

 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...formatted SQL Driven Optionsformatted SQL Driven Options


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