Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

Maximum ASP
  Ads  
Webhost4Life - $4.95 Windows Hosting
 


  Sponsors  

Meet Our Sponsors

OnyakTech
The best choice for your web site host, email hosting, and domain registration.
CrystalTech Web Hosting™
Webhost4life, specialists in DNN hosting
Mad Development is a full service interactive agency focusing on the merge of design, technology, e-commerce, and affiliate marketing by providing total website solutions.
AspDotNetStoreFront - E-Commerce by Design - The Leading ASP.NET shopping cart platform for developers!
 


DotNetNuke Forums
 
  Forum  DotNetNuke® Pro...  User Defined Ta...  Accessing UDT Value from code
Previous Previous
 
Next Next
New Post 4/16/2008 7:59 PM
Resolved
User is offline Ferry Mulyono
39 posts
10th Ranked


Accessing UDT Value from code 

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


Ferry Mulyono
DotNetNuke Skins
 
New Post 4/17/2008 7:49 PM
User is offline Sebastian Leupold
15045 posts
www.deutschnetnuke.de
1st Ranked












Re: Accessing UDT Value from code 

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.


Sebastian Leupold

DeutschNetNuke dnnWerk - The DotNetNuke Experts German DotNetNuke User-Group

DotNetNuke Project UserDefinedTable
DotNetNuke Project Release Tracker
 
New Post 4/18/2008 12:03 AM
User is offline Stefan Cullmann
1551 posts
5th Ranked








Re: Accessing UDT Value from code 

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


Stefan Cullmann - stefan.cullmann [at] dotnetnuke.com
form and List will be the successor of the User Defined Table module.
----------------------------------------------------------------------
Do you want to import external data to form and List /User Defined Table?
Check out http://www.codeplex.com/Csv2UDTImport
 
New Post 4/22/2008 3:23 AM
User is offline Dale Burrell
224 posts
www.creative-dreaming.com
9th Ranked


Re: Accessing UDT Value from code 

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 7:53 AM
User is offline Sebastian Leupold
15045 posts
www.deutschnetnuke.de
1st Ranked












Re: Accessing UDT Value from code 

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).


Sebastian Leupold

DeutschNetNuke dnnWerk - The DotNetNuke Experts German DotNetNuke User-Group

DotNetNuke Project UserDefinedTable
DotNetNuke Project Release Tracker
 
Previous Previous
 
Next Next
  Forum  DotNetNuke® Pro...  User Defined Ta...  Accessing UDT Value from code
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, 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 DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


EMAS Pro
Strategic Enrollment Management Software for Higher Education Recruitment, Retention and Financial Aid
www.emaspro.com
Subzero Solutions
Dutch / English DotNetNuke consultancy services. Custom module development in any version. Complete application integration. Small business portal hosting. Your ideas our innovation - Your success our motivation. K.v.k Amsterdam: 34236342
www.subzero-solutions.net
Hosting for DotNetNuke
SiteGround.com is the best place to host your DotNetNuke website! Expert DotNetNuke support, reliable servers, low price!
www.SiteGround.com

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP