Results 1 to 3 of 3

Thread: Creating new Module in 5.0c

  1. #1
    jlabuelo is offline Sugar Community Member
    Join Date
    Apr 2008
    Posts
    426

    Default Creating new Module in 5.0c

    Hi everybody

    Lets see if someone can help me here. This is the first time I have created my own module with 5.0, and even I have to say it has been pretty intuitive, (like always in first times) I did not get everything to work as I wanted.

    Let me explain you what I am trying to do. I am trying to create a simple "Contract" module to link it with the Accounts, so I can track the services I offer to each of the accounts I have created in my SugarCRM version.

    a) Reation with Accounts Module:

    To relate the Accounts Module and my Contracts module, what I did was adding a "Relate" field called assigned_account_id and liked it to the Accounts Module.

    Then I have placed this fild in the Edit, Detail and List Layouts, and I must say that in the Edit and Detail it works fine, I can pick one of the accounts from the popapplet and the value of the name of the account gets saved. However the problem is that once the account is related to the Contract, in the List applet, where I also have this assigned_account_id , the field is empty... dont get to show the name of the account... żAny ideas why?

    b) Currency field not displaying correctly

    Also a filed I have in the Contract module is the price, which is of type Currency, and again I have a problem in the List View, as the value gets showed with 6 decimals. For example if the value is 5.00 in Detail and Edit View, in the List View is 5.000000€ which is annoying and causes me some problems at the time I read it.

    c) Relation shown in subpanels

    One of the thing I want to get is realting the two modules, so when an user goes to the Accounts module it can see in the subpannels that the account has a contract assigned. But also what I want is that in the Contracts you dont need the Accounts subpanel as you already have the "Related" field in the Detail, Edit and List pannels.

    The problem is that if I create a New Relationship in the Contracts module, I am able to see both subpannels in both modules, and also in the Contract Module, when I pick an account in the "Related" assigned_account_id, the subpanel account does not get populated, so I have to go there and click manually to pick the same account again.

    What I want to get is a behaviour like the Accounts/Contacts module, where in the Contacts module when you pick the account, you dont have the accounts subpanel, and if you go to accounts, you can see all the contacts associated in the subpannel.... hope you understand what I mean.



    d) Not being able to admin the Module in the Role Management screen.

    Once I deploy the module, I can not go to the Roles and set the rights for each role (Edit, Delete, List, Import....) I dont see the module I have deployed at all...it does not appear in the list of modules I can set the rights to, so all the users will see this Contract Module.. with 100% Full access which is not my intention.... What am I doing wrong?


    Well "that"'s all :-DDDD..... if you could give me some guidenance I will appreciate it....even if you can point me to any usefull documentation .... what I have readed at the moment is not "very simple" for beginners :-D

    Thanks a lot guys!!

  2. #2
    junan.rizal is offline Sugar Community Member
    Join Date
    Mar 2008
    Posts
    14

    Default Re: Creating new Module in 5.0c

    maybe you must search your problem at sugar developer wiki page

    and ask your problem sugar forums -> community forum -> developers, and read older post about module
    builder or other things here

    read the administration manual about developer tools

    jun

  3. #3
    DragonflyMaster is offline Sugar Community Member
    Join Date
    Dec 2007
    Location
    Rimini, Italy
    Posts
    1,421

    Default Re: Creating new Module in 5.0c

    Quote Originally Posted by jlabuelo
    a) Reation with Accounts Module

    b) Currency field not displaying correctly

    c) Relation shown in subpanels

    d) Not being able to admin the Module in the Role Management screen.
    Hi,
    I think your d) issue reveals what is causing a) and c)
    Usually to solve such issues you need the Repair Roles function, but if you cannot see your module in there...
    My guess is that you created and customized your module all in module builder.
    Try this: create a new custom module in module builder, then save and deploy. Then use Studio to add fields and edit layouts. This should work.
    At the end, go to Repair Roles, you should see your new module.
    About your b) issue, first go in Admin->Locale Settings and check your settings for decimal symbol and 1000s Separator (use different symbols).
    Then open config.php in your Sugar root and edit this settings according to your currency:
    PHP Code:
      'default_currency_significant_digits' => '2' 
    What do you think the cookie monster eats ?

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. problemi step 6 di SugarSuite-Full-4.0.1h
    By lucia in forum Italiano
    Replies: 0
    Last Post: 2006-12-27, 08:50 AM
  2. Replies: 1
    Last Post: 2006-10-12, 12:07 AM
  3. Replies: 1
    Last Post: 2006-09-11, 03:38 PM
  4. 4.0.1 Installation Problem
    By clawton in forum Help
    Replies: 14
    Last Post: 2006-02-13, 04:17 PM
  5. Fatal error: Max
    By spokes2k4 in forum Help
    Replies: 3
    Last Post: 2006-01-15, 03:50 PM

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
  •