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

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...SQL Query to FormSQL Query to Form
Previous
 
Next
New Post
5/4/2012 11:27 PM
 

I'm using the word "form" loosely here...

I need a module that will allow me to create a dynamic form that is view only. I need the form to populate with data from a SQL query (i.e. SELECT NAME, CITY, STATE FROM CUSTOMER WHERE CUSTOMER_ID = ?). I would need to pass the Customer ID (i.e. "?") so the query would execute.Once the user passes the variable, fill the form with the data.

Does this exist? Do you have a name of the module that will allow this? Thank you

 
New Post
5/5/2012 5:50 AM
 
the core reports module can do this, but it only works for host users - this is because allowing users to run direct sql is dangerous (as they can insert/update/delete data) - however if you want to you can as the host create a sql script and parameterize it so when a user views the report it replaces the parameters with their values (such as userid) - see http://www.dotnetnuke.com/Resources/Video-Library/Viewer/Video/191/View/Details/Introduction-To-The-DotNetNuke-Reports-Module-050100.aspx and http://www.dotnetnuke.com/Resources/Blogs/EntryId/1076/Reports-Modules-Renderers-Caching-and-Parameters.aspx ). There are also other alternatives such as http://www.tressleworks.ca/FreeModules/SQLGridSelectedViewV41/UserGuide/tabid/86/Default.aspx

Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
5/8/2012 10:03 AM
 
cathal connolly,

Thank you for the post. Some of the confusion is on my part so I apologize. What I need (or want) is to develop a customer portal. Once the customer logs in, they can "query" their data in a view only format.  I agree with you that customers passing their own SQL is bad. I want the SQL "behind" the scenes so that the customer can add their account information (name, ID, etc) and pass that information as variables that are used in the query embedded in the web page. When the query returns the data, the results are presented to the screen (or form) on a page in the site.I guess I need to know if there's a module that can accomplish this...

I will check out your resources you added to the post in the meantime. Thank you again

 
New Post
5/8/2012 11:56 AM
 

After further evaluation, the reports module is close, but no cigar. I really need pass parameters input by the user. I can't have user A seeing data on user B.

 Any other suggestions would be great. Thank you

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...SQL Query to FormSQL Query to Form


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