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

Thread: Import in Custom Module

  1. #1
    fbrites is offline Sugar Community Member
    Join Date
    May 2008
    Location
    Lisbon, Portugal
    Posts
    77

    Default Import in Custom Module

    Hi. Hi have SugarCRM 5.0.0e in Windows XP.

    I'm developing the SugarCRM and I want the option of importing in Custom Module.
    I created a new module called 'work' and now I need to import data.
    I created the file 'ImportWork.php' in <root>/modules/import/ImportWork.php and changed the files' ImportButton.php 'and' Config.php' but had no success.

    How can create the functionality to import in custom module?

    Help me please

    Thanks
    Fábio Brites
    <Sugar 6.>
    <Windows XP>

  2. #2
    clint's Avatar
    clint is offline Sugar Team Member | Forums Lead Moderator
    Join Date
    Aug 2004
    Location
    Silicon Valley
    Posts
    2,120

    Default Re: Import in Custom Module

    The import capability happens automatically with Sugar 5.1 where we have completely rewritten how Import works and made it automatically recognize new modules. In Sugar 5.0, you have to add in code to the Import module for new modules to work. Look at the code in <sugarroot>/modules/Import/ and copy how one of the existing modules works.
    Sugar Developer Zone - developer resources | Sugar University - user and admin training
    Sugar Docs - user and admin documentation |
    Sugar Bug Tracker - Enter or view bugs
    SugarForge- open source modules, themes, lang packs | SugarExchange - commercial extensions

    Clint Oram
    Chief Technology Officer and Co-founder
    SugarCRM

  3. #3
    fbrites is offline Sugar Community Member
    Join Date
    May 2008
    Location
    Lisbon, Portugal
    Posts
    77

    Default Re: Import in Custom Module

    Thanks Clint.

    I'll try create import for new module.

    Thanks
    Fábio Brites
    <Sugar 6.>
    <Windows XP>

  4. #4
    fbrites is offline Sugar Community Member
    Join Date
    May 2008
    Location
    Lisbon, Portugal
    Posts
    77

    Default Re: Import in Custom Module

    Hi Clint,

    I haven't had any success.

    You can give me an example of creation of import to my new module 'Work'?

    Thanks
    Fábio Brites
    <Sugar 6.>
    <Windows XP>

  5. #5
    tyoungbl is offline Junior Member
    Join Date
    Jun 2008
    Posts
    1

    Default Re: Import in Custom Module

    Any guess at when 5.1 will be generally available?

  6. #6
    ruchida's Avatar
    ruchida is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Feb 2005
    Location
    Japan
    Posts
    1,375

    Default Re: Import in Custom Module

    Quote Originally Posted by tyoungbl
    Any guess at when 5.1 will be generally available?
    See this thread.
    Ryuhei Uchida
    Help Forum Moderator
    Calendar 2.0
    http://blogs.itmedia.co.jp/ruchida/

  7. #7
    fbrites is offline Sugar Community Member
    Join Date
    May 2008
    Location
    Lisbon, Portugal
    Posts
    77

    Default Re: Import in Custom Module

    Hi,

    I already tried the version SugarCRM 5.1 Beta and I know that version 5.1 Beta generates automatically the import function in any module.

    The version 5.1 Beta is not yet stable and hasn't developed addons and languages packs. Then I wanted to implement the import function in SugarCRM version 5.0.0e.

    Someone can give me any example of how to create a import in new module?

    Thanks for yours replies
    Fábio Brites
    <Sugar 6.>
    <Windows XP>

  8. #8
    clint's Avatar
    clint is offline Sugar Team Member | Forums Lead Moderator
    Join Date
    Aug 2004
    Location
    Silicon Valley
    Posts
    2,120

    Default Re: Import in Custom Module

    I will post an example later today.
    Sugar Developer Zone - developer resources | Sugar University - user and admin training
    Sugar Docs - user and admin documentation |
    Sugar Bug Tracker - Enter or view bugs
    SugarForge- open source modules, themes, lang packs | SugarExchange - commercial extensions

    Clint Oram
    Chief Technology Officer and Co-founder
    SugarCRM

  9. #9
    fbrites is offline Sugar Community Member
    Join Date
    May 2008
    Location
    Lisbon, Portugal
    Posts
    77

    Default Re: Import in Custom Module

    Thank you Clint
    Fábio Brites
    <Sugar 6.>
    <Windows XP>

  10. #10
    clint's Avatar
    clint is offline Sugar Team Member | Forums Lead Moderator
    Join Date
    Aug 2004
    Location
    Silicon Valley
    Posts
    2,120

    Default Re: Import in Custom Module

    Have a look at this blog post for details on how to do this.
    Sugar Developer Zone - developer resources | Sugar University - user and admin training
    Sugar Docs - user and admin documentation |
    Sugar Bug Tracker - Enter or view bugs
    SugarForge- open source modules, themes, lang packs | SugarExchange - commercial extensions

    Clint Oram
    Chief Technology Officer and Co-founder
    SugarCRM

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: 38
    Last Post: 2009-12-16, 11:43 PM
  2. Installation of custom module
    By guligo in forum Developer Help
    Replies: 3
    Last Post: 2008-04-09, 11:53 AM
  3. Custom Module Question.
    By dblake in forum Developer Help
    Replies: 2
    Last Post: 2007-09-26, 02:51 PM
  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. Replies: 7
    Last Post: 2006-06-06, 07:56 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
  •