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

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsReportsReportsHTML Template -- Is it possible to format values client side?HTML Template -- Is it possible to format values client side?
Previous
 
Next
New Post
4/11/2008 3:28 PM
 

Problem is that I have a SUM() value "62213170" that will be displayed in my HTML Template.  This value represents money, but it's stored as varchar in the database.

I'd like it to display as $62,213,170.00

My first thought was to do this with javascript, but each time I throw <script></script> around my substitution value the whole thing disappears.  Someone mentioned the same issue in May, but it was never replied.


http://www.dotnetnuke.com/Community/Forums/tabid/795/forumid/136/threadid/139914/scope/posts/Default.aspx

 
New Post
4/12/2008 2:20 PM
 

Unfortunately, <script/> tags must be removed by the module because they can pose a security risk. I will investigate the possibility of allowing SuperUsers to enter any HTML they want, but I can't allow anyone with lower permissions (such as Portal Admins) to do so since they could compromise the security of the DNN login cookies.

I will be looking at allowing more advanced data formatting in a future version, but you are welcome to try implementing your own HTML Visualizer if you have any programming knowledge. Just copy the ~/DesktopModules/Reports/Visualizers/HTML folder (in a Source distribution of the module) with a different name (i.e. "MyHTML") and you might be able to remove the filtering functionality


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

 
New Post
4/14/2008 10:56 AM
 

Thanks.  I did find a way to format the text in question using SQL, so in this case there is a workaround.  Good to know about the <script/> tags for future use.

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsReportsReportsHTML Template -- Is it possible to format values client side?HTML Template -- Is it possible to format values client side?


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