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  |  

Vote for DotNetNuke as your choice for winner of this year's PackT Open Source CMS Award
  Need Help?  
Professional technical support for DotNetNuke is available from DotNetNuke Corporation.
 


  Ads  
Aspose - The .NET & Java component publisher
 


  Sponsors  

Meet Our Sponsors

Jango Studios - Skins, Modules and Hosting for DotNetNuke
eUKhost.com is commited to offer exceptional UK Windows Web Hosting solutions with quality 24x7 technical support.Our plans support ASP.Net, ASP, ASP.NET Ajax extensions, XML, MSSQL, MySQL, PHP,DNN, multiple domains and Shared SSL as standard.
SmarterTools
The Official Microsoft ASP.NET Website
Portal Webhosting - Hosting For Developers
Red-Gate Software
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Extend It! ( Pr...  I'm stuck. Module Developers, please help!!
Previous Previous
 
Next Next
New Post 5/8/2006 7:57 AM
User is offline A Hamdan
79 posts
www.dotnetnuke.com
10th Ranked


I'm stuck. Module Developers, please help!! 

I used Codesmith to create my DAL for a module to be used in DNN 4.0.3 and everything is working fine.  The module is basically a Gridview that is linked to a table in my DNN Database and it is working the way it supposed to.  The problem I’m having is that I don’t know how to get the Gridview to display an additional field I added to my List procedure. As follows:

 

-- To simplify my code, I’m using a little different example

******The stored Procedure

Select

A.StudentID,

A.StudentName,

A.FacilityID,

‘FacilityName’ = B.FacilityName          --  This is the additional I’m trying to add

From students A inner join Facilities B on A.FacilityID = B.FacilityID

 

 

 

*******I also modified my studentsInfo.vb file as follows:

 

   Public Class StudentsInfo

 

#Region "Private Members"

        Dim _studentID As Integer

        Dim _studentName As String

        Dim _facilityID As Integer

        Dim _facilityName As String ‘ the new added field

 

.

.

.

Public ReadOnly Property FacilityName() As String

            Get

                Return _facilityName

            End Get

End Property

 

 

*******Finally, I added a new column to my GridView that points to FacilityName but it always shows blank.  What am I missing??

 

 

 
New Post 5/8/2006 8:33 AM
User is offline A Hamdan
79 posts
www.dotnetnuke.com
10th Ranked


Re: I'm stuck. Module Developers, please help!! 

By the way, the stored procedure is running and it is returning a result with  FacilityName <> Blank.

 

 

 
New Post 5/9/2006 9:04 PM
User is offline William Severance
744 posts
www.wesnetdesigns.com
7th Ranked






Re: I'm stuck. Module Developers, please help!! 

If your business controller class follows the usual DNN pattern of calling CBO.FillObject and/or CBO.FillCollection to obtain a StudentsInfo object or collection of StudentsInfo objects, the FacilityName property cannot be ReadOnly.  If the property is ReadOnly, the reflection used in the CBO class will skip over the property resulting it being blank. Add a setter to the property:

Public Property FacilityName () As String
     Get
         Return _facilityName
     End Get
     Set (ByVal value As String)
         _facilityName = value
     End Set
End Property


Bill, WESNet Designs
 
New Post 5/10/2006 1:12 PM
User is offline A Hamdan
79 posts
www.dotnetnuke.com
10th Ranked


Re: I'm stuck. Module Developers, please help!! 

Fantastic,  It worked. 

 

Imagemaker,

please keep checking on us in this forum, I was about to give up on a response.  Thank you so much.  You made my day.

 

 

 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Extend It! ( Pr...  I'm stuck. Module Developers, please help!!
 


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.

 


DM Analytics, LLC
DM Analytics, LLC provides software solutions that facilitate rapid development of independent or dependent datamarts and their associated web-based reporting.
www.dmanalytics.com
Integral Hosting | DNN only $14.95/month
Experienced .NET hosting on Windows 2003, ASP.NET 1.1 & 2.0, MSSQL with real technical support.
www.integralhosting.com
Aricie
Aricie is one of the French pioneers and experts in DotNetNuke technology.
www.aricie.com

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