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 ...Feedback message to databaseFeedback message to database
Previous
 
Next
New Post
2/8/2006 5:33 PM
 

Ok im a huge noob when it comes to DNN, I just started using it and I'm not too familiar with VB.  My experience has been with c++ and c#.  The problem I am having is that I am trying to change the existing Feedback module that comes with 4.0 to add feedback to a table in my database as well as send a message to the Site admin.  I have created the table for the feedback, and a stored procedure to add the feedback but, I have no clue where to tell the module to use my stored procedure when the send button is clicked.  Heres the stored procedure just to clarify table names etc

set ANSI_NULLS ON

set QUOTED_IDENTIFIER ON

go

 

/** Create Stored Procedures **/

 

CREATE procedure [dbo].[Portal_AddFeedback]

 

      @FeedbackID       int,

      @ModuleID         int,

      @Name             NVARCHAR(50),

      @Email            NVARCHAR(50),

      @Subject          NVARCHAR(100),

      @Message          TEXT,

      @CreatedByUser    NVARCHAR(100)

 

as

 

BEGIN TRANSACTION

insert into Portal_Feedback

values (

 

      @ModuleID,

      @Name,

      @Email,

      @Subject,

      @Message,

      getdate(),

      @CreatedByUser

)

COMMIT TRANSACTION

 

 

select SCOPE_IDENTITY()

I can tell from looking at how add link works in the links module, that i need a directory for the sqldata, so i created that

DesktopModules\Feedback\Providers\DataProvider\SqlDataProvider

 

In there I have the file 03.01.00.SqlDataProvider which I edited to contain the appropriate sql code.  So what as far as I can tell, all I need to do now is let the module know to run this procedure when the send button is clicked.  Any help on this issue would be much appreciated.

 

 

JS

 
New Post
2/9/2006 11:55 PM
 

Just for fun, you might check in with Mark Hoskins who has a new version of the Feedback module just about ready for release.  I believe it does all this and more *grin*.

http://www.dotnetnuke.com/Default.aspx?tabid=841


Scott Willhite, Co-Founder DNN

"It is only with the heart that one can see rightly... what is essential is invisible to the eye. "
~ Antoine de Saint-Exupéry

 
New Post
2/10/2006 12:25 PM
 
Woo, very nice.  Thanks for the link.  I will definetely look into useing that module but, I am still curious as to how one would go about making the above procedure work.  I guess the biggest problem I have is that with VB, i dont know where in the code to change it so that when the user hits the send button on the module, my stored procedure is run as well. 
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Feedback message to databaseFeedback message to database


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