Results 1 to 4 of 4

Thread: Custom Module - Enum to Multienum

  1. #1
    cnielsenlev is offline Member
    Join Date
    Aug 2008
    Location
    Chandler, AZ
    Posts
    14

    Default Custom Module - Enum to Multienum

    Hey all -

    I have a custom module that has an enum in it. We have decided to convert it to a multienum. No problem, I think to myself.

    Change the vardef to multienum, rebuild the cache. SWEET!! The Edit view works. Select a pair of values and click save. The detailView just shows a small black sqaure in the field??

    The value in the database is "Array " - LOL -- Broken, I think to myself... I wonder how to fix it?


    EDIT: There's not solution here but this thread is related.


    Thanks -

    Cole
    Last edited by cnielsenlev; 2008-08-15 at 02:13 AM. Reason: Adding a related post.

  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: Custom Module - Enum to Multienum

    Quote Originally Posted by cnielsenlev
    Hey all -

    I have a custom module that has an enum in it. We have decided to convert it to a multienum. No problem, I think to myself.

    Change the vardef to multienum, rebuild the cache. SWEET!! The Edit view works. Select a pair of values and click save. The detailView just shows a small black sqaure in the field??

    The value in the database is "Array " - LOL -- Broken, I think to myself... I wonder how to fix it?


    EDIT: There's not solution here but this thread is related.


    Thanks -

    Cole
    Hi Cole.

    Check if in the vardefs the field definition has the attribute "isMultiSelect".
    Remove it and Rebuild Extension.
    Make sure the editviewdefs and detailviewdefs has no the attribute 'type' => 'multienum'.

    Cheers
    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
    cnielsenlev is offline Member
    Join Date
    Aug 2008
    Location
    Chandler, AZ
    Posts
    14

    Default Re: Custom Module - Enum to Multienum

    Thanks for the reply.

    Vardefs do not have the isMultiSelect parameter.
    The edit and detailviewdefs do not have the 'type' attribute for the fields.

    Rebuilt extension, cleared the template cache.


    Multiselect appears on the Edit view - had the right option selected that was in there from before list view showed the item plus that silly black box I was talking about previously. Selected 2 options, clicked save, behavior is the same...

  4. #4
    cnielsenlev is offline Member
    Join Date
    Aug 2008
    Location
    Chandler, AZ
    Posts
    14

    Default Re: Custom Module - Enum to Multienum

    Was able to resolve this by removing and re-adding the field to the Edit View --- a second time.

    The isMultiSelect = true entry in the vardefs was critical.


    Thanks for the help

    Cole

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 6
    Last Post: 2011-03-29, 10:40 AM
  2. Custom Module not Uninstalling
    By john2010 in forum Help
    Replies: 0
    Last Post: 2008-07-11, 03:22 PM
  3. Relate custom module to cases
    By bchard in forum Help
    Replies: 1
    Last Post: 2008-04-04, 02:18 AM
  4. Do not Delete a Custom Module from the file system..
    By cjohnston in forum General Discussion
    Replies: 0
    Last Post: 2008-01-11, 04:40 PM
  5. Asterisk Patch 1.1.0 Crash on logon
    By skyracer in forum Help
    Replies: 6
    Last Post: 2006-07-08, 06: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
  •