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 ListAccessing UDT Value from codeAccessing UDT Value from code
Previous
 
Next
New Post
4/16/2008 9:59 PM
 

Hi all,

I was wondering, is it possible to access the value of UDT from code? So the UDT will be used as some kind of lookup value table that is accessible for the user, but the values are used from the code in another module.

Do UDT provided such API to do this? Or do I have to access the database directly?

Thanks..

Best Regards, Ferry Mulyono

 
New Post
4/17/2008 9:49 PM
 

you can use UDT business classes to access data, though there is no documentation. Another option is using Lists table and provide a UI for managing entries, as e.g. Feedback module does.


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
4/18/2008 2:03 AM
 

Ferry, please use

Dim udt As New UserDefinedTableController()
Dim table as DataTable = udt.GetDataSet(ModuleID).Tables(0)

ModuleID is the ID of the source UDT module

 
New Post
4/22/2008 5:23 AM
 

Hi - I am doing something similar - now how does the UDT cope with the fact that when you use the DNN feature "Add Existing Module" it shares the data amoung multiple modules and when you use "Add New Module" the data is seperate?

Does udt.GetDataSet(ModuleID) handle this case? e.g. I have a UDT and I have used the "Add Existing Module" to add it to multiple pages with a different filter on each page. However records may have been added used any one of the instances and therefore I assume will have different ModuleID's even though they are essentially page of the same table of data.

How does the data know which logical table it belongs to?

Thanks,


www.creative-dreaming.com
 
New Post
4/22/2008 9:53 AM
 

if you use "add existing module", an additional module reference to the existing will be created, i.e. a tabmodule entry, which is the link between the module and its occurrence on a single tab. All references share the same field definitions, module data, ModuleSettings but not TabModuleSettings (view specifications).


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 ListAccessing UDT Value from codeAccessing UDT Value from code


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