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 ForumsReportsReportsHow To Report ODSFormHow To Report ODSForm
Previous
 
Next
New Post
7/17/2007 12:54 AM
 
Hi,

I am trying to generate a report based on data collected by ODSForm. Problem I'm running into is that the data from the questions are stored in a way I'm not familiar with and am not sure how to get at.

The table is called:
ODSFormSubmission

The Fields in the table are:
FormSubmissionID,
ModuleID,
PortalID,
SubmissionDate,
Submission,

The form questions and answers are all stored in the "Submission" Field as below.
*** Name *** MyName *** Address *** 123 MyAddress *** City *** MyCity ***

I have created a simple report in the reports module using:
SELECT ODSFormSubmission.*
FROM ODSFormSubmission;

What I get back looks like this:
FormSubmissionID ModuleID PortalID SubmissionDate Submission,
1 391 0 7/12/2007 4:55:21 AM *** Name *** MyName
*** Address *** 123
MyAddress *** City
*** MyCity ***
2 391 0 7/12/2007 4:57:50 AM *** Name *** MyName
*** Address *** 123
MyAddress *** City
*** MyCity ***



Does anyone know what this is called?
Does anyone know how to seperate the date out of the submission field?

Any help is greatly appreciated!!!
Thanks.
 
New Post
7/19/2007 4:20 PM
 
Helloooooooooooooo, any one out there?

Did I stump the Guru's?

Still hoping to find some insite on this.

Please!!!
 
New Post
7/19/2007 7:33 PM
 

I suggest you contact the developer of OSDForm to obtain the required information.

 
New Post
7/30/2007 11:57 PM
 

I'm currently trying to do the same on some of my sites. No final solution so far, but the link below demonstrated a possible lead, which I'll be checking out this evening.

http://www.dpawson.co.uk/xsl/sect2/N1755.html - see point number 2, regarding CSV data - something similar should be doable with the three asterixs too... Will let you know tomorrow if it works.

 
New Post
8/1/2007 8:22 PM
 

Success!

Scrap the xsl, and just use a SQL query.

In our case, we had to pull out bids for an auction, names, and the time/date column from the submissions table:

SELECT top 4 CAST (substring(Submission,charindex('$',Submission),800) AS money) as [Leading bid],SubmissionDate as [Bid Date/Time], substring(Submission,
                       charindex('name ***',Submission)+8,
                       10) as [Bid by]
       from databasename.dbo.ODSFormSubmission
        WHERE ModuleID= 5651 AND charindex('$',Submission) > 0
Order by [Leading bid] DESC

 

In your case you can scrap the money conversion, but I'd imagine you'll have to use a pair of nested subtrings for each item - i.e. one to trim off the "Name ***" before the name, and another to trim from "*** Address" on.

Hope that helps.

 

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsReportsReportsHow To Report ODSFormHow To Report ODSForm


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