Results 1 to 6 of 6

Thread: Adding rows dynamicaly.

  1. #1
    sperson is offline Member
    Join Date
    Aug 2008
    Posts
    7

    Question Adding rows dynamicaly.

    I created a new tab in Sugarcrm called Parts for managing parts. In this tab the user can add new parts which have a code and a description. In the Case tab i inserted a related field (related do parts) wich allow the user specify the parts used in the case.

    My question is:

    Because i usualy have more than one part assigned to one case, i would like to be able to add dynamicaly new part rows in the edit view of the case.

    It would be something like in the contacts tab (for ex.) where there is an option called "+ Add Address". By cliclking on it i can add more than one email addres for the same contact.

    I would like to do the same in my Parts tab being able to add more than one codes in a only case.

    How can i do that?
    Thanks
    I'm using Sugarcrm 5.1.0 Full.

  2. #2
    andopes's Avatar
    andopes is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Jul 2006
    Location
    São Paulo - Brazil
    Posts
    8,335

    Default Re: Adding rows dynamicaly.

    Hi sperson

    The easiest way to do this is to create a relationship 1:M between Cases and Parts. Studio in SugarCRM 5.1 allows that.
    But if you really wants to use the same behavior in the Email Address link you will need to modify some core code or make an dynamic table for that.

    We had make a dynamic table which satisfy this needs.

    Let me know if you need any help.

    Best regards.
    André Lopes
    DevToolKit / Project of the Month - June 2009
    Lampada Global Services- Open Source Solutions
    Avenida Ipiranga, 318
    Bloco B - CJ 1602
    São Paulo, SP 01046-010
    Brazil
    Office: +55 11 3237-3110
    Mobile: +55 11 7636-5859
    e-mail: andre@lampadaglobal.com

    Lampada Global delivers offshore software development and support services to customers around the world.
    Lampada is proud to be a SugarCRM Gold Partner, revolutionizing Customer Relationship Management.

    I DO NOT answer questions through PM and Email. If you need some help post your question into SugarForum.

  3. #3
    sperson is offline Member
    Join Date
    Aug 2008
    Posts
    7

    Question Re: Adding rows dynamicaly.

    Ola Andre,

    Realmente eu gostaria de usar a mesma "formula" utilizada no caso do email no entanto eu imagino que deva ser un tanto mais complicado.

    Caso tenha alguma informação que me ajude a fazer desta forma eu agradeceria.

    De qualquer forma obrigado pelo retorno.

    Abraço.

  4. #4
    ergky is offline Member
    Join Date
    Nov 2008
    Posts
    6

    Default Re: Adding rows dynamicaly.

    Hello there,

    The task I want to accomplish is similar to which you have described.
    In the opportunity module I want to add multiple instances of a drop-down that holds material information and a textfield that holds the tonnage of this material. So one opportunity can have multiple material type - tonnage information and on change this should be visible in the View Change Log part.

    It should have the same functionality as the add address link button of the Contacts module. Which files do I have to edit and which tables do I have to create or alter.

    Thanks for your help.

  5. #5
    Antanas0001 is offline Sugar Community Member
    Join Date
    Aug 2007
    Location
    Lithuania
    Posts
    41

    Default Re: Adding rows dynamicaly.

    We have the same taks to do. We are making a copy of include\SugarEmailAddress\SugarEmailAddress.php
    and modifying it.

  6. #6
    Antanas0001 is offline Sugar Community Member
    Join Date
    Aug 2007
    Location
    Lithuania
    Posts
    41

    Default Re: Adding rows dynamicaly.

    Actually it would be so much better, if SugarCRM introduced a widget for adding dynamic rows.
    We could then customise the widget by adding different sugar objects into it.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Forums installation Problem
    By historicslunk in forum Help
    Replies: 1
    Last Post: 2007-01-14, 07:50 PM
  2. Sugar V4.5 Forums Module download?
    By kickedmydog in forum Installation and Upgrade Help
    Replies: 6
    Last Post: 2006-11-12, 12:57 AM
  3. Replies: 1
    Last Post: 2006-09-11, 03:38 PM
  4. Serious issue with sugarcrm 3.5.1.c
    By wp.rauchholz in forum Help
    Replies: 17
    Last Post: 2005-12-01, 07:22 AM
  5. Bug: Studio Adding rows
    By malcolmh in forum Help
    Replies: 1
    Last Post: 2005-10-17, 01:31 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
  •