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 ForumsForm and ListForm and ListForm and List Module -TableForm and List Module -Table
Previous
 
Next
New Post
12/15/2011 9:29 AM
 

Hi,

 I want to know how the data are stored in Form and list module.In which location the data will be stored.

Is there any were we need to define\configure where the data should be stored and how it should be stored?

Thanks,

 
New Post
12/18/2011 6:05 AM
 
all data is stored serialized in table UserDefinedData (see row header in UserDefinedRows and column definition in UserDefinedFields).

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
12/27/2011 2:59 PM
 

could u tell me, how to retrieve the data. (a normal table, like on the website)

in a select statement maybe ??

thank you

 
New Post
12/28/2011 4:26 AM
 
youi may either use FnL DataSource adapter for Reports module or the one for XML/XSL module.

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
12/31/2011 10:10 PM
 
this is the solution to my problem by someone nice called RICHARD
ALTER PROCEDURE [dbo].[ST4WDC_ReportFormAndListModules] @PortalID INT, @ModuleTitle NVARCHAR (256) AS BEGIN

SET NOCOUNT ON;

IF @ModuleTitle = 'Participants' BEGIN
SELECT
m.ModuleID,
m.ModuleTitle,
r.UserDefinedRowId,
dbo.ST4WDCexpandData (@PortalID, r.UserDefinedRowId, dbo.ST4WDC_FieldID (0, m.ModuleID, 'Tag')) AS 'Tag',
dbo.ST4WDCexpandData (@PortalID, r.UserDefinedRowId, dbo.ST4WDC_FieldID (0, m.ModuleID, 'Event')) AS 'Event',
dbo.ST4WDCexpandData (@PortalID, r.UserDefinedRowId, dbo.ST4WDC_FieldID (0, m.ModuleID, 'Participant 1')) AS 'Participant 1',
dbo.ST4WDCexpandData (@PortalID, r.UserDefinedRowId, dbo.ST4WDC_FieldID (0, m.ModuleID, 'Fin')) AS 'Fin',
dbo.ST4WDCexpandData (@PortalID, r.UserDefinedRowId, dbo.ST4WDC_FieldID (0, m.ModuleID, 'Training 1')) AS 'Training 1',
dbo.ST4WDCexpandData (@PortalID, r.UserDefinedRowId, dbo.ST4WDC_FieldID (0, m.ModuleID, 'Status')) AS 'Status',
dbo.ST4WDCexpandData (@PortalID, r.UserDefinedRowId, dbo.ST4WDC_FieldID (0, m.ModuleID, 'Participant 2')) AS 'Participant 2',
dbo.ST4WDCexpandData (@PortalID, r.UserDefinedRowId, dbo.ST4WDC_FieldID (0, m.ModuleID, 'Vehicle')) AS 'Vehicle',
dbo.ST4WDCexpandData (@PortalID, r.UserDefinedRowId, dbo.ST4WDC_FieldID (0, m.ModuleID, 'Trailer')) AS 'Trailer',
dbo.ST4WDCexpandData (@PortalID, r.UserDefinedRowId, dbo.ST4WDC_FieldID (0, m.ModuleID, 'Others')) AS 'Others',
dbo.ST4WDCexpandData (@PortalID, r.UserDefinedRowId, dbo.ST4WDC_FieldID (0, m.ModuleID, 'Created by')) AS 'Created by',
dbo.ST4WDCexpandData (@PortalID, r.UserDefinedRowId, dbo.ST4WDC_FieldID (0, m.ModuleID, 'Created at')) AS 'Created at',
dbo.ST4WDCexpandData (@PortalID, r.UserDefinedRowId, dbo.ST4WDC_FieldID (0, m.ModuleID, 'Changed by')) AS 'Changed by',
dbo.ST4WDCexpandData (@PortalID, r.UserDefinedRowId, dbo.ST4WDC_FieldID (0, m.ModuleID, 'Changed at')) AS 'Changed at'
FROM dbo.UserDefinedRows r
LEFT OUTER JOIN dbo.Modules m
ON m.ModuleID = r.ModuleID
WHERE m.ModuleTitle = @ModuleTitle
AND m.IsDeleted = 0
AND m.PortalID = 0
ORDER BY m.ModuleID, dbo.ST4WDCexpandData (@PortalID, r.UserDefinedRowId, dbo.ST4WDC_FieldID (0, m.ModuleID, 'Event'))
RETURN
END
-- repeat for each module instance
END

The supporting functions are:

ALTER FUNCTION [dbo].[ST4WDC_FieldID] (@PortalID INT, @ModuleID INT, @FieldTitle NVARCHAR (50)) RETURNS INT AS BEGIN

RETURN (SELECT UserDefinedFieldID FROM dbo.UserDefinedFields WHERE ModuleID = @ModuleID AND FieldTitle = @FieldTitle)
END


ALTER FUNCTION [dbo].[ST4WDCexpandData] (@PortalID INT, @UserDefinedRowId INT, @UserDefinedFieldID INT) RETURNS NVARCHAR (MAX) AS BEGIN

DECLARE @ModuleID INT = (SELECT ModuleId FROM dbo.UserDefinedRows WHERE UserDefinedRowId = @UserDefinedRowId)
DECLARE @Visible BIT = (SELECT Visible FROM dbo.UserDefinedFields WHERE UserDefinedFieldId = @UserDefinedFieldID)
DECLARE @FieldType VARCHAR (20) = (SELECT FieldType FROM dbo.UserDefinedFields WHERE UserDefinedFieldId = @UserDefinedFieldID)
DECLARE @FieldTitle NVARCHAR (50) = (SELECT FieldTitle FROM dbo.UserDefinedFields WHERE UserDefinedFieldId = @UserDefinedFieldID)
DECLARE @FieldValue NVARCHAR (MAX) = (SELECT FieldValue FROM dbo.UserDefinedData WHERE UserDefinedRowID = @UserDefinedRowID AND UserDefinedFieldID = @UserDefinedFieldID)
DECLARE @InputSettings NVARCHAR (2000) = (SELECT InputSettings FROM dbo.UserDefinedFields WHERE UserDefinedFieldId = @UserDefinedFieldID)
DECLARE @Default NVARCHAR (2000) = (SELECT "Default" FROM dbo.UserDefinedFields WHERE UserDefinedFieldId = @UserDefinedFieldID)
DECLARE @Field NVARCHAR (MAX)

SET @Field = CASE
WHEN @FieldType IN ( 'Boolean', 'ChangedAt', 'ChangedBy', 'CreatedAt', 'CreatedBy', 'Currency', 'Decimal', 'EMail', 'Int32', 'String', 'TextHTML' )
THEN @FieldValue
WHEN @FieldType IN ( 'Date' )
THEN CONVERT (NVARCHAR (11), CAST (@FieldValue AS DATETIME), 106) --1995-06-10T00:00:00
WHEN @FieldType IN ( 'LookUp' )
THEN dbo.ST4WDCprofileValue (@PortalID, @Default, dbo.ST4WDCgetListData (@ModuleID, @InputSettings, @UserDefinedRowId))
WHEN @FieldType IN ( 'URL' )
THEN CASE
WHEN REPLACE (REPLACE (REPLACE (REPLACE (REPLACE (REPLACE (REPLACE (REPLACE (REPLACE (REPLACE
(@FieldValue, '9', ''), '8', ''), '7', ''), '6', ''), '5', ''), '4', ''), '3', ''), '2', ''), '1', ''), '0', '') = ''
THEN (SELECT TabName FROM dbo.Tabs WHERE TabID = CAST (@FieldValue AS INT))
ELSE @FieldValue
END
WHEN @FieldType IN ( 'UserLink' ) -- UserID=234
THEN (SELECT DisplayName FROM dbo.Users WHERE UserID = dbo.ST4WDCgetFirstInteger (@FieldValue))
WHEN @FieldType IS NULL -- could have been a lookup so this test comes after that one
THEN ''
ELSE 'Unknown Field Type'
END

IF @Field IS NULL RETURN ''
RETURN @Field
END

ALTER FUNCTION [dbo].[ST4WDCgetFirstInteger] (@string NVARCHAR (MAX)) RETURNS INT AS BEGIN

DECLARE @result NVARCHAR (MAX)
DECLARE @start INT = PATINDEX ('%[01234567890]%', @string)
DECLARE @end INT = PATINDEX ('%[^0123456789]%', SUBSTRING (@string, @start, 2000))

RETURN
CASE
WHEN @start = 0
THEN NULL
WHEN @end = 0
THEN CAST (SUBSTRING (@string, @start, LEN (@string) - @start + 1) AS INT)
ELSE CAST (SUBSTRING (@string, @start, @end - 1) AS INT)
END
--SELECT dbo.ST4WDCgetFirstInteger ('userID=32|crap')
--SELECT dbo.ST4WDCgetFirstInteger ('userID=|crap')
--SELECT dbo.ST4WDCgetFirstInteger ('userID=3')
--SELECT dbo.ST4WDCgetFirstInteger ('3crap')
--SELECT dbo.ST4WDCgetFirstInteger ('')

END

Hope this helps

Richard

but now im facing other problem
i have one XML column, when i use the Report Viewer Control , it shows the tags of the XML column.
what can i do to hide those tags and only view the data ?!?
 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsForm and ListForm and ListForm and List Module -TableForm and List Module -Table


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