Results 1 to 3 of 3

Thread: Attaching a file to a custom module

  1. #1
    jonnywatson is offline Sugar Community Member
    Join Date
    May 2008
    Location
    Leeds
    Posts
    41

    Default Attaching a file to a custom module

    Hi Guys,

    I have created a custom module and i would like to either have the history subpanel avalible or have the ability to upload and attch a file (pdf) to the records in the module.

    I have searched all over but can not work out how to get the history panel showing OR how to added the correct feild into the module....

    Any ideas?

    Jonny

  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: Attaching a file to a custom module

    Hi, Jonny.

    About the file attached to the record, take a look at the Notes module.
    It can show you how to create a file field.

    About the History Subpanel you can take a look at any modules which has Activities and Subpanels, like Accounts.
    Basically you have to create fields of type link for all Activity modules (Calls, Emails, Meetings, Tasks, Notes), one relationship for each field and entries into subpaneldefs.php

    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
    jonnywatson is offline Sugar Community Member
    Join Date
    May 2008
    Location
    Leeds
    Posts
    41

    Default Re: Attaching a file to a custom module

    I will take a look at the notes thing...

    I edited subpaneldefs.php to add history to it but it never appeared in the module...

    thanks for your advice

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Module Builder
    By Olavo in forum Downloads
    Replies: 418
    Last Post: 2009-02-26, 06:36 AM
  2. Replies: 6
    Last Post: 2008-06-17, 06:32 AM
  3. Search file field in custom module
    By kathiste in forum Help
    Replies: 4
    Last Post: 2008-02-11, 12:18 AM
  4. upgraded to 4.5.1e, received "Metadata for table tracker does not exist"
    By sfgeorge in forum Installation and Upgrade Help
    Replies: 0
    Last Post: 2007-09-03, 02:24 PM
  5. Adding custom field when creating module.
    By Superman in forum General Discussion
    Replies: 1
    Last Post: 2005-11-16, 07:30 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
  •