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.0Multiple form ModuleMultiple form Module
Previous
 
Next
New Post
7/10/2006 10:50 PM
 

After reading Michael Washington's tutorial at http://www.adefwebserver.com/DotNetNukeHELP/DNN_Things4Sale/ I'm in process of creating the first form in my module. And since it is a simple, one form tutorial, I'm not sure how to proceed in creating other forms (so I would have six separate forms, but all of them are having FKeys down from one to another)


For each form to display in my module I have to create:
   One set of files:
      {
         TableNameInfo.vb,
         TableNameController.vb
      } in MyModuleName folder under App_Code folder
     
      and
     
      {
         ViewTableName.ascx,
         ViewTableName.ascx.vb
      } in MyModuleName folder under DesktopModules folder
     
   One set od Stred Procs:
      {
         TableName_Update,
         TableName_Insert,
         TableName_Delete,
         TableName_SelectAll
      }
     
Then register the whole module or each form separately (I'm not sure on this one) in DNN

Or should I just create six separate modules with one SQL script file for all six?

I tried to look up other modules, but looks like they are in .net v1.1 to maintain compatibility with DNN3.3 and none of them in Visual Studio 2005, so every time I'm opening something up it goes through the converting wizard and gives me some errors and suggestions to remove and re-add something, etc.

Could anyone point me the right direction?

Thanks,

Waldis

P.S. I posted a question on my SQL tables at http://www.dotnetnuke.com/Community/ForumsDotNetNuke/tabid/795/forumid/111/threadid/49129/scope/posts/Default.aspx

 
New Post
7/24/2006 1:30 AM
 
I have written DALs for first two tables (info and Control files), and view.ascx file which includes two formViews, a gridView, and several buttons for each table. So far by clicking on an appropriate button I have to hide or show appropriate objects. So every button has over 20 show/hide lines of code, and I’m afraid to think what’s going to happen with 10 tables!!! It would be much easier to do one table per page, but I’m clueless how to join them in a DNN module, since I tried to do it and got all kind of errors and problems. I’ve been looking for tutorials and bought two Walker’s books, but they discuss one-table module, and again I have thrown my money out (not quite, but in the case of trying to find an explanation for the challenge I'm facing).
 
New Post
7/24/2006 10:15 AM
 

I am not sure if I grasp the complete picture but...

maybe it would be best to make a user control for each form which encapsulates all of the form logic and then make a central dnn module which by clicking on the correct button opens up the correct form in the same module.

 


Thanks,
Vladan Strigo
NETMedia

My website: Vladan.Strigo.NET

Vladan.Strigo.NET: Projects
* Advanced VS2005 development approach - BlankModule
* DNN & Microsoft Ajax best practices guidance

Vladan.Strigo.NET: Resources
* Comprehensive list of DNN 4 Module development resources

 
New Post
8/2/2006 11:31 PM
 

Thanks for the idea, I did three user controls so far, each has two formViews (one just for insert and one for view/edit) and one gridView for overview, plus buttons to show/hide objects. Each form has a DDL with IDs from the table that are referenced from the table that's on the next form. Now I put them three controls in the ViewForms.ascx control. The idea is this: once I make the selection from the DDL and click on the button it should hide the control with the first form and show the second form with the related records to the value passed from the DLL.

Now I have trouble with passing the DDL.SelectedValue to the next control (I can't get the other control to see it).

And how would I go if I needed to return back to the previous form... I guess just a button with show/hide comands should suffice, since I am getting the current user ID with

e.InputParameters("UserID") = Entities.Users.UserController.GetCurrentUserInfo.UserID

to control the records displayed.

Thank you,

Waldis

 
New Post
8/3/2006 12:57 PM
 

When I type in this code:

===============================================================

' Getting the CompanyID from the Companies control to pass to the next control

Dim objCompaniesControl As UserControl = CType(Page.FindControl("ctlCompanies"), UserControl)

Dim objCompaniesDDL As DropDownList = CType(objCompaniesControl.FindControl("uxCompaniesDDL"), DropDownList)

Dim intCompanyID As Integer = objCompaniesDDL.SelectedValue

Dim strCompanyName As String = objCompaniesDDL.SelectedItem.ToString

===============================================================

for some reason I get this error:

===============================================================

Error: SSI_Research is currently unavailable.
DotNetNuke.Services.Exceptions.ModuleLoadException: Object reference not set to an instance of an object. ---> System.NullReferenceException: Object reference not set to an instance of an object. at ...

===============================================================

and looks like the very first line where I'm trying to access the controll is messing everything up.

Thanks,

Waldis

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Multiple form ModuleMultiple form Module


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