Results 1 to 4 of 4

Thread: Exportação para Excel...

  1. #1
    Jorge Luiz is offline Senior Member
    Join Date
    Dec 2009
    Posts
    21

    Default Exportação para Excel...

    Prezados,

    Quando clico no botão exportar em Contas, ele exporta todos os campo. Preciso que ele exporte apenas alguns. Como eu posso customizar esse relatório quando faço a exportação?

    Agradeço-os...

  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: Exportação para Excel...

    A solução envolve conhecimento de javascript, php e sugar.
    É preciso fazer varias alterações de código, upgrade safe.
    Como é seu conhecimento nesses assuntos?

    Att
    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
    Jorge Luiz is offline Senior Member
    Join Date
    Dec 2009
    Posts
    21

    Default Re: Exportação para Excel...

    André,

    Tenho um bom conhecimento. Acredito que possamos fazer tais altereções. Preciso apenas saber aonde devo mexer.

    abraço!

  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: Exportação para Excel...

    Você precisa:
    • Criar um custom view.list.php para poder especificar um ListView customizado na função preDisplay:
    • Criar uma nova classe que extende a ListViewSmarty e implementar o método buildExportLink, originalmente definido em ListViewDisplay;
    • Modificar o retorno dessa nova função para um novo entryPoint;
    • Criar um custom entryPoint em custom/include/MVC/Controller/buildExportLink.php
    • Criar o script do entryPoint que fará o papel do export.php e realizar as alterações necessárias para exportar apenas alguns campos específicos.


    Att
    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.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Exportação Sugar 5.1.0
    By consulte in forum Portugese
    Replies: 2
    Last Post: 2008-09-30, 07:00 PM
  2. Problemas para migrar sugar para outro servidor
    By guilhermepimenta in forum Portugese
    Replies: 2
    Last Post: 2008-04-30, 11:42 AM
  3. Excel Import
    By MinimumEgg in forum Help
    Replies: 2
    Last Post: 2007-09-21, 11:31 PM
  4. Exporting csv into Excel??
    By suarez in forum General Discussion
    Replies: 0
    Last Post: 2006-03-21, 07:30 PM
  5. Replies: 5
    Last Post: 2005-12-14, 02:12 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
  •