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...Using Modules a...Using Modules a...Form n List module  - forcing fields to show in dbForm n List module - forcing fields to show in db
Previous
 
Next
New Post
3/14/2011 10:23 AM
 
On the Form n List module  - when used as a web form, blank fields do not show as an entry in the database.
(in the table: UserDefinedData)

Is it possible to make all fields on my web form log an entry (even if the user leaves a field blank)?

I realise I could either make it a required field or insert default text -
(but don't want it as a required field and the user could always start to insert something and then delete it, so default text  doesn't seem ideal).

thanks in advance,
mark.
 
New Post
3/14/2011 3:04 PM
 
why do you need those useless records in the database? It has been an optimization, NOT to store it.

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
3/15/2011 6:35 AM
 
The reason for this is to create a view which shows all records just from one particular form.

The UserDefinedData table shows an amalgamated list of fields from all our forms.

The code below shows our query which we have tried to use to show only results from one form (but if the user leaves a field blank - the entire record is not pulled in to the view).

-----------------------
CREATE VIEW dbo.vw_EmailRegistrations
AS SELECT TOP 100 PERCENT
owner.UserDefinedRows.ModuleId,
owner.UserDefinedData.UserDefinedRowId,
owner.UserDefinedData.FieldValue AS EmailAddress,
UserDefinedData_1.FieldValue AS NINo,
UserDefinedData_2.FieldValue AS Surname,
UserDefinedData_3.FieldValue AS Forename,
UserDefinedData_4.FieldValue AS Telephone,
UserDefinedData_5.FieldValue AS Mobile

FROM owner.UserDefinedRows INNER JOIN
owner.UserDefinedData ON owner.UserDefinedRows.UserDefinedRowId = owner.UserDefinedData.

UserDefinedRowId INNER JOIN
owner.UserDefinedData UserDefinedData_1 ON owner.UserDefinedRows.UserDefinedRowId = UserDefinedData_1.UserDefinedRowId INNER JOIN
owner.UserDefinedData UserDefinedData_2 ON owner.UserDefinedRows.UserDefinedRowId = UserDefinedData_2.UserDefinedRowId INNER JOIN
owner.UserDefinedData UserDefinedData_3 ON owner.UserDefinedRows.UserDefinedRowId = UserDefinedData_3.UserDefinedRowId INNER JOIN
owner.UserDefinedData UserDefinedData_4 ON owner.UserDefinedRows.UserDefinedRowId = UserDefinedData_4.UserDefinedRowId INNER JOIN
owner.UserDefinedData UserDefinedData_5 ON owner.UserDefinedRows.UserDefinedRowId = UserDefinedData_5.UserDefinedRowId

WHERE (owner.UserDefinedRows.ModuleId = 873)
AND (owner.UserDefinedData.UserDefinedFieldId = 90)
AND (UserDefinedData_1.UserDefinedFieldId = 89)
AND (UserDefinedData_2.UserDefinedFieldId = 88)
AND (UserDefinedData_3.UserDefinedFieldId = 45)
AND (UserDefinedData_4.UserDefinedFieldId = 149)
AND (UserDefinedData_5.UserDefinedFieldId = 167)

ORDER BY owner.UserDefinedData.UserDefinedRowId

----------------------------

* Also tried outer joins, but this also failed to show the records which contained blank fields.
* And tried to allow and not allow NULLS in the field too.
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Using Modules a...Using Modules a...Form n List module  - forcing fields to show in dbForm n List module - forcing fields to show in db


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