Page 1 of 3 123 LastLast
Results 1 to 10 of 22

Thread: Disable Mass Update Panel

  1. #1
    stevecheng is offline Member
    Join Date
    Nov 2007
    Posts
    5

    Default Disable Mass Update Panel

    Hi,

    Is there a way to disable the Mass Update panel from each module? I edited the ListView.php and altered the following:

    $params = array('massupdate' => true);

    to

    $params = array('massupdate' => false);

    And the panel did not get displayed anymore, however there was a Jscript error as follows:

    theForm has no properties
    and it pointed to this line of code - if(typeof theForm.uid.value != 'undefined' && theForm.uid.value != "") {


    Although the panel was removed I'm not comfortable with the Jscript error appearing, also the error only appears in Firefox, IE doesn't seem bothered by it.

    Does anybody know of a different way to disable the Mass Update panel? Preferrably via the admin interface. I'm using the OpenSource 4.5.1h

    I could fiddle with the code and sort my problem out, but was wondering if there was a simpler way.

    Thanks

    Regards

    Steve

  2. #2
    lvangool is offline Sugar Community Member
    Join Date
    Jul 2006
    Location
    Near Rotterdam, Holland
    Posts
    280

    Default Re: Disable Mass Update Panel

    There's another variable, show_massupdate_form.

  3. #3
    stevecheng is offline Member
    Join Date
    Nov 2007
    Posts
    5

    Default Re: Disable Mass Update Panel

    Ivangool,

    Thanks for response, I couldn't find that variable. Where is it located?

    Steve

  4. #4
    lvangool is offline Sugar Community Member
    Join Date
    Jul 2006
    Location
    Near Rotterdam, Holland
    Posts
    280

    Default Re: Disable Mass Update Panel

    in the module's listview.php...

    $lv->$show_mass_update = false;
    $lv->$show_mass_update_form = false;

    not sure what the standard listview instance is called, maybe $lv, maybe $listview..

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

    Default Re: Disable Mass Update Panel

    It would be

    $lv->show_mass_update = false;
    $lv->show_mass_update_form = false;

    notice the lack of the $ in front of the show_mass stuff. This should hide the forms
    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

  6. #6
    stevecheng is offline Member
    Join Date
    Nov 2007
    Posts
    5

    Default Re: Disable Mass Update Panel

    Guys,

    Thanks for your responses. I still could not find $lv->show_mass_update in the ListView.php file.

    And to confirm the version I'm using is SugarOS-Full-4.5.1h

    Regards

    Steve

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

    Default Re: Disable Mass Update Panel

    You have to add it to the file above the display() command
    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

  8. #8
    mvngti is offline Sugar Community Member
    Join Date
    Oct 2007
    Location
    South Africa
    Posts
    510

    Default Re: Disable Mass Update Panel

    This worked perfectly in 4.5 but how can it be done in 5.0 modules that no longer use the ListView.php files with the ListView class.

    I could not find show_mass_update_form anywhere else in the 5.0.0a Pro code.


    M

  9. #9
    ARads is offline Junior Member
    Join Date
    Jun 2007
    Posts
    3

    Default Re: Disable Mass Update Panel

    Any good news about disabling MU in 5.0 version?

  10. #10
    okays is offline Junior Member
    Join Date
    Feb 2009
    Posts
    1

    Default Re: Disable Mass Update Panel

    if you want to disable mass update panel of all pages

    1.open include\MassUpdate.php
    2.find function getMassUpdateForm()
    3.inset

    return '';

    at the first line of this function.

    sugarcrm version : 5.2.0a

Page 1 of 3 123 LastLast

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Unable to Hide 'Mass Update' panel
    By HomeTeam in forum General Discussion
    Replies: 13
    Last Post: 2009-04-26, 03:55 AM
  2. Replies: 0
    Last Post: 2007-06-16, 02:20 PM
  3. Removing Fields from Mass Update Panel
    By mkatzhyman in forum Help
    Replies: 0
    Last Post: 2007-02-23, 03:16 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
  •