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

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0II'm stuck. Module Developers, please help!!
Previous
 
Next
New Post
5/8/2006 10:57 AM
 

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 11:33 AM
 

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

 

 

 
New Post
5/10/2006 12:04 AM
 

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
Team Lead - DotNetNuke Gallery Module Project (Not Actively Being Developed)
Extensions Forge Projects . . .
Current: UserExport, ContentDeJour, ePrayer, DNN NewsTicker, By Invitation
Coming Soon: FRBO-For Rent By Owner
 
New Post
5/10/2006 4:12 PM
 

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
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0II'm stuck. Module Developers, please help!!


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