Page 1 of 2 12 LastLast
Results 1 to 10 of 18

Thread: Total amount on Opportunity list view

  1. #1
    kinshibuya's Avatar
    kinshibuya is offline A Sugar Hero
    Join Date
    Jul 2008
    Location
    brasil
    Posts
    521

    Default Total amount on Opportunity list view

    Hi.

    I'm using sugar 5.1 CE

    Is there a way to put the total amount on the Oportunity's list view?

    Image follow atached.
    Attached Images Attached Images  

  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: Total amount on Opportunity list view

    Hi kinshibuya

    Are you going to display there the total amount of all Opportunities in the ListView?
    If yes it is possible.

    You need to:
    1. define a view.list.php. This view.list.php will:
    1.1. calculate the total amount;
    1.2. define a new class from which the ListView object will be instantiated;
    1.3. assign into a xtpl variable the total amount;
    2. define a new ListView class, which extends ListViewSmart.php, from which the ListView object will be instantiated. This class will:
    2.1. define a new xtpl file
    3. create a new xtpl file, derived from ListViewGeneric.tpl. This one will
    3.1. define the variable to be parsed from total amount.

    That is it.
    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
    kinshibuya's Avatar
    kinshibuya is offline A Sugar Hero
    Join Date
    Jul 2008
    Location
    brasil
    Posts
    521

    Default Re: Total amount on Opportunity list view

    Thanks for the reply.

    and for dashlet? is also possible?

  4. #4
    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: Total amount on Opportunity list view

    It is possible, but it is more complicated.
    You need to create a new class which extends the DashletGeneric, and your Dashlet class will extend this new one.
    You should need to modify this new class to redefine the template.
    The strategy is similar the suggested for ListView but a bit different.

    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.

  5. #5
    kinshibuya's Avatar
    kinshibuya is offline A Sugar Hero
    Join Date
    Jul 2008
    Location
    brasil
    Posts
    521

    Default Re: Total amount on Opportunity list view

    I know lampada do this kind of customizations,
    Can you do this on line? like giving us the files?
    I could dig this up but i need this kinda fast.
    How much would it cost?

  6. #6
    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: Total amount on Opportunity list view

    Hi kinshibuya


    Send me an email or ping me on skype 'andopes' to talk about that.

    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.

  7. #7
    sujitkirve is offline Sugar Community Member
    Join Date
    Jan 2008
    Location
    India
    Posts
    70

    Default Re: Total amount on Opportunity list view

    Hi,
    I also having same requirement of showing the Total of Amount opportinuties in List View Grid and not into the dashlet . I have defined the view.list.php file but not getting it done .....

  8. #8
    kinshibuya's Avatar
    kinshibuya is offline A Sugar Hero
    Join Date
    Jul 2008
    Location
    brasil
    Posts
    521

    Default Re: Total amount on Opportunity list view

    Hi what do you have in your view.list.php?
    Priscila Kin Yamamoto Joranhezon
    Phone: +55 61 32010000
    priscila.joranhezon@nct.com.br
    NCT Informática Ltda

  9. #9
    mbuttrey01 is offline Senior Member
    Join Date
    Feb 2009
    Posts
    40

    Default Re: Total amount on Opportunity list view

    kinshibuya,

    Were you able to accomplish this? Would you be able to share how you did it?

    Michael

  10. #10
    anjireddy987 is offline Senior Member
    Join Date
    Jan 2010
    Location
    hyderabad,india
    Posts
    91

    Post Re: Total amount on Opportunity list view

    hi...
    i am new to sugar...
    i am very much interested regarding the solution for creating afield on list view to display the total amount.
    i to want to create the same filed like that...
    can u explain how to create that...view.list.php file how to assing the total value to xtpl file
    and how to develop xtpl file...
    or send me the code if u have.....

    please help me regarding that to learn....


    my email : gramanjul@gmail.com

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 4
    Last Post: 2009-10-28, 10:21 AM
  2. Replies: 1
    Last Post: 2008-02-22, 05:46 PM
  3. Replies: 1
    Last Post: 2008-01-11, 06:34 PM
  4. Opportunity List View easily fixed
    By jasonadmin in forum Feature Requests
    Replies: 1
    Last Post: 2006-09-19, 07:54 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
  •