Results 1 to 5 of 5

Thread: Need a tutorial on how to create a new module

  1. #1
    edlentz is offline Senior Member
    Join Date
    Nov 2010
    Posts
    45

    Default Need a tutorial on how to create a new module

    I want to create a new module that allows me to :
    a. Select an account
    b. Add records that are sold to that account.

    I sell equipment that I need to keep track of serial numbers. I might sell 50 at a time to a customer. I need a way to keep track of this stuff. I know enough to create the relationship to the account and create the "Master" record but how do I create the "sub panel" to add in the items I sell them. I need to keep several different bits of info on each item I sell.

    Thanks for any guidance in this.

  2. #2
    sts's Avatar
    sts
    sts is offline Sugar Community Member
    Join Date
    Aug 2010
    Posts
    978

    Default Re: Need a tutorial on how to create a new module

    If I understand you right you have accounts which could have several objects "records". This would be a one-to-many relationship between the accounts module and a new custom module "records".

    This new module you could create with the admin->module builder tool. You create a package, let's say "myPackage" and a module in it called "record". For this module you can define all the fields you need and the different views for displaying and creating these objects. Very important is to define a relationship between this module and the accounts module as said above. If you do this in the new module you have to select "many-to-one" as relationship type and "accounts" as the related module.

    After saving the module and deploying the new package you should be able to add new "record" objects to the accounts. The records will be shown in a subpanel of the accounts now.
    Stefan Ulrich Sauer
    System Analyst

    Devoteam Danet GmbH
    Gutenbergstraße 10
    D-64331 Weiterstadt
    Germany
    email: Stefan-Ulrich.Sauer@devoteam.com
    http://www.devoteam.de

  3. #3
    edlentz is offline Senior Member
    Join Date
    Nov 2010
    Posts
    45

    Default Re: Need a tutorial on how to create a new module

    Thanks Stefan

    I think I have it, that is easier than I thought. Small world I met for the first time today a young man named Stefan that is my niece's boyfriend. Good name.

  4. #4
    edlentz is offline Senior Member
    Join Date
    Nov 2010
    Posts
    45

    Default Re: Need a tutorial on how to create a new module

    I have a couple of stumbling areas. The new "Asset" tab shows up in the Account module just fine, but the view only shows the date the item was entered. I have added the new fields to all the views I can find in the module. I also (I told the project to be hidden when I initially created it) can't seem to get the project back to the main menu. I thought I only wanted it to be accessable in the Account area but I find that that might not be as desirable as I thought.

  5. #5
    sts's Avatar
    sts
    sts is offline Sugar Community Member
    Join Date
    Aug 2010
    Posts
    978

    Default Re: Need a tutorial on how to create a new module

    To get/hide a Tab for your module:in the Module Builder there is a option called "Navigation Tab". This should help (and don't forget to save and deploy ...).
    Stefan Ulrich Sauer
    System Analyst

    Devoteam Danet GmbH
    Gutenbergstraße 10
    D-64331 Weiterstadt
    Germany
    email: Stefan-Ulrich.Sauer@devoteam.com
    http://www.devoteam.de

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. MVC info/tutorial
    By jblain in forum Developer Help
    Replies: 0
    Last Post: 2009-06-16, 11:28 AM
  2. Tutorial to develop new module
    By BaDang in forum Developer Help
    Replies: 5
    Last Post: 2009-02-25, 03:23 AM
  3. Tutorial on creating module without module builder?
    By SanderMarechal in forum Developer Help
    Replies: 9
    Last Post: 2008-12-02, 11:46 AM
  4. Replies: 7
    Last Post: 2005-11-28, 10:07 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •