Results 1 to 1 of 1

Thread: MassUpdate Javascript Error On Custom Module

  1. #1
    CMTG is offline Sugar Community Member
    Join Date
    Dec 2006
    Posts
    10

    Default MassUpdate Javascript Error On Custom Module

    Hi,

    I'm running SugarCRM OS 4.5.0h on WindowsXP/IIS5.1.

    I've written a custom module using the stock Opportunities module as a template. It all works great except for the mass update form at the bottom of the ListView. When I click the Update button, I get a Javascript error:

    Line: 445
    Char: 3
    Error: 'document.defaultView' is null or not an object
    Code: 0

    The lines surrounding 445 from the generated web page:

    Code:
    [Line 443] <li  id="tab_li_Opportunities|basic_search"><a  id="tab_link_Opportunities|basic_search" href="javascript:selectTabCSS('Opportunities|basic_search');">Basic Search</a></li>	
    [Line 444] <li  id="tab_li_Opportunities|advanced_search"><a  id="tab_link_Opportunities|advanced_search" href="javascript:selectTabCSS('Opportunities|advanced_search');">Advanced Search</a></li>	
    [Line 445] <li class="active" id="tab_li_Opportunities|saved_views"><a class="current" id="tab_link_Opportunities|saved_views" href="javascript:selectTabCSS('Opportunities|saved_views');">Saved Search & Layout</a></li>
    [Line 446] </ul>
    [Line 447] <script>SUGAR.savedViews.displayColumns = "OPP_NUMBER|SUFFIX|NAME|ACCOUNT_NAME|SALES_STAGE|AMOUNT_USDOLLAR|DATE_STAGE_CLOSED|DATE_CLOSED|ASSIGNED_USER_NAME|BIZ_GROUP";SUGAR.savedViews.hideTabs = "OPPORTUNITY_TYPE|COUNTRY|MARKET|CLIENT_REF|PROBABILITY|DATE_ENTERED|CREATED_BY_NAME|MODIFIED_USER_NAME";</script><form name='search_form'><input type='hidden' name='searchFormTab' value='saved_views'/><input type='hidden' name='module' value='Opportunities'/><input type='hidden' name='action' value='index'/><input type='hidden' name='query' value='true'/><div id='Opportunitiesbasic_searchSearchForm' style='display: none'>
    Mass update still works fine for all of the other stock modules.

    It is very non-obvious to me how the mass update works, even after spending weeks learning how to write modules and I'm not even sure how that piece of code is even related to mass update. What have I missed?

    Any help greatly appreciated.

    CMTG
    Last edited by CMTG; 2007-02-28 at 02:09 PM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Module Builder
    By Olavo in forum Downloads
    Replies: 418
    Last Post: 2009-02-26, 06:36 AM
  2. Replies: 1
    Last Post: 2006-09-11, 03:38 PM
  3. Asterisk Patch 1.1.0 Crash on logon
    By skyracer in forum Help
    Replies: 6
    Last Post: 2006-07-08, 06:30 AM
  4. Replies: 7
    Last Post: 2006-06-06, 07:56 PM
  5. Adding custom field when creating module.
    By Superman in forum General Discussion
    Replies: 1
    Last Post: 2005-11-16, 07: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
  •