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 ListSQL statement to get the records added by a certain user on a UDTSQL statement to get the records added by a certain user on a UDT
Previous
 
Next
New Post
6/4/2008 7:18 PM
 

Hi, I'm developing a custom module that should show the records added by the user on a UDT on the site. So far I've checked the UserDefined* tables by I can't see how to get the rows.

So, users are adding rows to the wishes UDT, and I need to show on my module only the rows added on that Wishes UDT by the logged user.

Could anybody help?

Thanks in advance,

Esteve.


ege
 
New Post
6/5/2008 5:10 AM
 

UDT rows are stored serialized:

  • usedefinedfields contains field definition
  • userdefinedrows holds the row ID
  • userdefineddata stores in each record a single value per field*row.

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
6/5/2008 5:36 AM
 

I really recommend to use the UDT API:

Dim udt As UserDefinedTableController
Dim ds As DataSet = udt.GetDataSet(moduleid)

'Look Up the title of the "Created by Column
Dim dv As New DataView(ds.Tables(1), _
   String.Format("[{0}]='{1}'", "FieldType", "CreatedBy"), "", DataViewRowState.CurrentRows)
Dim titleOfCreatedByColumn = dv.Item(0)("FieldTitle")

'Filter Data
dv = New DataView(ds.Tables(0), _
            String.Format("[{0}_UDT_Original] = '{1}'", titleOfCreatedByColumn, Me.UserInfo.Username), _
            "", DataViewRowState.CurrentRows)
 
New Post
6/5/2008 11:48 AM
 

Thank so much Stefan. Just one more question, and sorry to be a nuisance, where can I find the complete API for the UDT? I've checked the downloadables files after reading your post, but I couldn't find them.

Best Regards,
Esteve.


ege
 
New Post
6/5/2008 1:13 PM
Accepted Answer 

Esteve,

API is part of the source code, you can download and install in any DNN 3.3.5-3.3.7 installation. Another option is using class browser in VS or Reflector.


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsForm and ListForm and ListSQL statement to get the records added by a certain user on a UDTSQL statement to get the records added by a certain user on a UDT


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