Results 1 to 10 of 10

Thread: Unable to Restore Edit and REM button to sub-panel in 5.5

  1. #1
    vcomp is offline Member
    Join Date
    Feb 2010
    Posts
    11

    Default Unable to Restore Edit and REM button to sub-panel in 5.5

    While in module builder, I moved the Edit and REM buttons to the Hidden area and now they have disappeared. I'd like to move them back to the "Default" area but they're not displayed any more in order for me to drag them over. Is there a way to bring them back?

    I am willing to start over with the sub-panel if necessary. Funny, I thought the "Restore Default" button would restore everything, but it doesn't. Am I missing something there?

    Thanks,

    Vic

  2. #2
    salesagility's Avatar
    salesagility is offline Sugar Community Member
    Join Date
    Aug 2006
    Location
    UK
    Posts
    2,379

    Default Re: Unable to Restore Edit and REM button to sub-panel in 5.5

    Use View History instead of restore defaults ... this will allow to to roll back your changes

  3. #3
    vcomp is offline Member
    Join Date
    Feb 2010
    Posts
    11

    Default Re: Unable to Restore Edit and REM button to sub-panel in 5.5

    Thanks for you suggestion. However, the View History only includes the last ten or so ListViews which doesn't include the original. Is there any other way to solve this problem?

    TIA,

    Vic

  4. #4
    kbrill's Avatar
    kbrill is offline SugarCRM PS Engineer
    Join Date
    Jul 2004
    Location
    St Louis, MO
    Posts
    3,183

    Default Re: Unable to Restore Edit and REM button to sub-panel in 5.5

    Can you export and post your module here?
    Kenneth Brill - Help Forum Moderator

    I do not respond to 'Private Messages'. Please email me directly instead

    When asking for help, PLEASE give us your Server Information and Version Numbers as asked for on the 'Post New Message' screen as well as any JavaScript errors shown at the bottom of the browser window.
    Help us Help You

  5. #5
    vcomp is offline Member
    Join Date
    Feb 2010
    Posts
    11

    Default Re: Unable to Restore Edit and REM button to sub-panel in 5.5

    Ok, I exported the package and zipped the specific module that's having the problem. The zip file is attached.

    Thank you for taking the time out to help.

    Vic
    Attached Files Attached Files

  6. #6
    kbrill's Avatar
    kbrill is offline SugarCRM PS Engineer
    Join Date
    Jul 2004
    Location
    St Louis, MO
    Posts
    3,183

    Default Re: Unable to Restore Edit and REM button to sub-panel in 5.5

    OK Here is what you are going to want to do

    Find the file

    custom/modulebuilder/packages/<MODULE_NAME>/metadata/subpanels/default.php

    and edit it and make the end of it look like this

    PHP Code:
        'summary' => 
        array (
          
    'type' => 'text',
          
    'studio' => 'visible',
          
    'vname' => 'LBL_SUMMARY',
          
    'width' => '40%',
          
    'default' => true,
        ),
        
    'edit_button'=>array(
            
    'widget_class' => 'SubPanelEditButton',
             
    'module' => $module_name,
            
    'width' => '4%',
        ),
        
    'remove_button'=>array(
            
    'widget_class' => 'SubPanelRemoveButton',
             
    'module' => $module_name,
            
    'width' => '5%',
        ),
      ),
    ); 
    Then edit

    modules/<MODULE_NAME>/metadata/subpanels/default.php

    and do the same thing. Then run an Admin->Repair->Quick Repair and everything should be back to normal

    Make sure there is not a file named

    custom/modules/<MODULE_NAME>/metadata/subpanels/default.php

    if there is then delete it and then run the quick repair.

    Let me know how it goes.
    Kenneth Brill - Help Forum Moderator

    I do not respond to 'Private Messages'. Please email me directly instead

    When asking for help, PLEASE give us your Server Information and Version Numbers as asked for on the 'Post New Message' screen as well as any JavaScript errors shown at the bottom of the browser window.
    Help us Help You

  7. #7
    vcomp is offline Member
    Join Date
    Feb 2010
    Posts
    11

    Default Re: Unable to Restore Edit and REM button to sub-panel in 5.5

    Excellent

    It worked like a charm.

    Thanks so much!!!

    Vic

  8. #8
    kbrill's Avatar
    kbrill is offline SugarCRM PS Engineer
    Join Date
    Jul 2004
    Location
    St Louis, MO
    Posts
    3,183

    Default Re: Unable to Restore Edit and REM button to sub-panel in 5.5

    No problem, glad I could help.
    Kenneth Brill - Help Forum Moderator

    I do not respond to 'Private Messages'. Please email me directly instead

    When asking for help, PLEASE give us your Server Information and Version Numbers as asked for on the 'Post New Message' screen as well as any JavaScript errors shown at the bottom of the browser window.
    Help us Help You

  9. #9
    sta0g is offline Junior Member
    Join Date
    Dec 2011
    Posts
    4

    Default Re: Unable to Restore Edit and REM button to sub-panel in 5.5

    I followed these same steps to get these buttons back in Version 6.3.0 (Build 7004). After editing, repairing, deleting, and repairing the buttons show back up in the CRM but still can't be seen with the module builder. If I publish the site again the buttons go away. Help!

  10. #10
    sta0g is offline Junior Member
    Join Date
    Dec 2011
    Posts
    4

    Default Re: Unable to Restore Edit and REM button to sub-panel in 5.5

    Found the right file to edit in 6.3 in the projects subfolder in the custom directory

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Can't restore the remove button back
    By nasserff in forum Help
    Replies: 7
    Last Post: 2010-03-21, 01:59 AM
  2. How To Create Same Panel By Clicking ADD button
    By synoy in forum Developer Help
    Replies: 3
    Last Post: 2009-05-13, 07:41 AM
  3. Unable to Hide 'Mass Update' panel
    By HomeTeam in forum General Discussion
    Replies: 13
    Last Post: 2009-04-26, 03:55 AM
  4. Want a Select button in Projects Sub Panel
    By blueshimmer in forum Developer Help
    Replies: 4
    Last Post: 2007-04-27, 04:23 PM
  5. Edit New Contact Panel
    By mcharudatta in forum Developer Help
    Replies: 6
    Last Post: 2006-03-22, 05:04 PM

Tags for this Thread

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
  •