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 ListHow the UDT Data is storedHow the UDT Data is stored
Previous
 
Next
New Post
6/18/2007 11:59 AM
 
The data values for each field title are stored horizontally- that is in rows. This doesn't lend it self well to reports and datagrids etc. Has anyone written a stored procedure to convert from rows to columns? Would one be useful?
 
New Post
6/18/2007 7:37 PM
 

there is a method in dotnetnuke, that is used in business logic to load serialized stored field values into a dataset. This is used by UDT to load data and recommended to be used to access UDT data.


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
6/20/2007 3:31 PM
 

i am working on this for using  SQL reports with the UDT module. It should be done by the end of the month.

 

richard

 

 
New Post
6/20/2007 4:46 PM
 

please be always aware, that the storage format is "subject to change", e.g. column properties will change significantly in next version


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
6/21/2007 12:31 PM
 

Thanks for the inputs. I am interested in the fill method but that seems like a lot of work (any examples available)- If my UDT form has 150 entries for example, all I want is to select any column, and as many and as I want, and bind them to a datagrid or other objects:

This worked for me- the only problem was I had to change the dat type in the UDT to varchar max instaed of text:

 

O

/****** Object: StoredProcedure [dbo].[GetUDTData] Script Date: 06/21/2007 11:25:55 ******/

SET

ANSI_NULLS ON

GO

SET

QUOTED_IDENTIFIER ON

GO

CREATE

Proc [dbo].[GetUDTData] @param varchar(4000), @moduleid varchar(50)

as

declare

@val VARCHAR(100)

declare

@result VARCHAR(4000)

declare

declare

declare

@count int @count1 int @input varchar(4000)

SELECT

@result = 'SELECT userdefinedrowid,'

select

@count=0

select

@count1=0

select

@input =@param

WHILE

 

 

 

LEN( @param ) > 0 BEGIN select @count =@count + 1IF CHARINDEX( ',', @param ) > 0SELECT @val = LEFT( @param, CHARINDEX( ',', @param ) - 1 ) ,

@param

 

 

 

 

 

set

= RIGHT( @param, LEN( @param ) - CHARINDEX( ',', @param ) )ELSESELECT @val = @param, @param = SPACE(0)END @param=@input

WHILE

 

 

 

LEN( @param ) > 0 BEGIN select @count1 =@count1 + 1IF CHARINDEX( ',', @param ) > 0SELECT @val = LEFT( @param, CHARINDEX( ',', @param ) - 1 ) ,

@param

 

 

 

 

 

= RIGHT( @param, LEN( @param ) - CHARINDEX( ',', @param ) )ELSESELECT @val = @param, @param = SPACE(0)if @count1 < @countSET @result = @result + 'coalesce(min(case when FieldTitle = ' + '''' + @val + '''' +

 

' then FieldValue end) ,'''')' + ' As ' + '''' + @val + ''','

 

else

 

SET @result = @result + 'coalesce(min(case when FieldTitle = ' + '''' + @val + '''' +

 

' then FieldValue end) ,'''')' + ' As ' + '''' + @val + ''''

 

 

END

 

 

SELECT @result=@result + ' FROM UserDefinedData AS D INNER JOIN UserDefinedFields AS'SELECT @result=@result + ' F on D.UserDefinedFieldId = F.UserDefinedFieldId WHERE F.ModuleId =' + @moduleid + ' group by userdefinedrowid'

 

exec ( @result)

 

--print @count1

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsForm and ListForm and ListHow the UDT Data is storedHow the UDT Data is stored


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