Results 1 to 9 of 9

Thread: Creat file upload field for custom module

  1. #1
    dante2010 is offline Member
    Join Date
    Feb 2009
    Posts
    17

    Default Creat file upload field for custom module

    Hi,

    I am using SugarCRM Community Edition v5.2.0a.

    I am attempting to create a custom module, in which I need to allow users to upload files. Up until this point I have had no problems, but I can't figure out how to add a file upload field to a module. I don't see any data type that pertains to a file upload field when I am in the module builder.

    From a quick google search it seems that one must edit files pertaining to the custom module in order to do this? Can someone point me to a good tutorial on how to do this, if it is in fact the case?

    If not then I'm not sure what I'm doing wrong. I can see that there are file upload fields in other modules (documents) so I know Sugar must be capable of this.

    Any help is appreciated.

  2. #2
    Join Date
    Feb 2007
    Location
    San Jose, CA
    Posts
    1,169

    Default Re: Creat file upload field for custom module

    How about doing this instead? Create a relationship with the Documents module. That way, you have all of the functionality that the out-of-the-box module provides you without doing anything more than creating the 1-1, 1-many, or many-many relationship.
    Susie Williams

  3. #3
    dante2010 is offline Member
    Join Date
    Feb 2009
    Posts
    17

    Default Re: Creat file upload field for custom module

    OK, I think I follow what you're saying. My only question would be if I do this, do the files have to be uploaded in the Documents section first, to then be "linked" to from my custom module?

    I would like it if I can just upload a file directly through my custom module interface.

  4. #4
    dante2010 is offline Member
    Join Date
    Feb 2009
    Posts
    17

    Default Re: Creat file upload field for custom module

    Is anyone able to offer some advice on this issue?

    It looks like if I create a relationship with the document module, that the files then need to be uploaded through the document module first, which isn't the functionality I am looking for.

  5. #5
    thamima is offline Senior Member
    Join Date
    Mar 2009
    Location
    Pretoria, South Africa
    Posts
    23

    Default Re: Creat file upload field for custom module

    Hi dante2010

    You can create your custom module using "file" as type in your module builder.

  6. #6
    dante2010 is offline Member
    Join Date
    Feb 2009
    Posts
    17

    Default Re: Creat file upload field for custom module

    I don't see any type of "file" in the module builder when I am creating fields though.

  7. #7
    thamima is offline Senior Member
    Join Date
    Mar 2009
    Location
    Pretoria, South Africa
    Posts
    23

    Default Re: Creat file upload field for custom module

    No, when you start to create a module you first create a "package". The next screen you create a module, this is where you specify "Module Name", ... and "Type" which can either be "basic, company, file, etc". If you choose "file" as type you will get the functionality for uploading documents.

  8. #8
    dante2010 is offline Member
    Join Date
    Feb 2009
    Posts
    17

    Default Re: Creat file upload field for custom module

    Oh wow... ok. Is there any way to copy an existing custom module setup into a new module of type "file"?

    I ask because I've already created my custom module based off the contact module. I don't really want to have to recreate it all over again by creating a new module of type file.

  9. #9
    Ugo
    Ugo is offline Junior Member
    Join Date
    Mar 2010
    Posts
    1

    Default Re: Creat file upload field for custom module

    Hi Dante dis you resolved the problem?

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. FILE UPLOAD Field ( How To Add Mannually)
    By sun.rajasekhar in forum Developer Help
    Replies: 9
    Last Post: 2011-11-24, 08:31 AM
  2. File upload in custom module
    By piccirm in forum Developer Help
    Replies: 2
    Last Post: 2010-09-22, 08:14 AM
  3. Replies: 3
    Last Post: 2008-08-23, 06:55 AM
  4. Search file field in custom module
    By kathiste in forum Help
    Replies: 4
    Last Post: 2008-02-11, 12:18 AM
  5. File Upload Field
    By davidolaj in forum Feature Requests
    Replies: 5
    Last Post: 2007-09-08, 10:17 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
  •