Results 1 to 1 of 1

Thread: Include Mass Update?

  1. #1
    tj@estreet.com is offline Sugar Community Member
    Join Date
    Feb 2006
    Posts
    163

    Default Include Mass Update?

    Hey All,
    Just putting finishing touches on a major custom implementation of Sugar OS 4.0.1f
    It has been a LONG, winding road, with a steep learning curve and MUCH GNASHING OF TEETH
    but in the end... WOW! This thing is AWESOME! I am so very pleased!
    There's but one last kink we need to work out before pressing the new system into service.

    We've re-named the Calendar Tab to "Schedule" and subjugated our highly modified Accounts ListView under the Calender DayView in Calender/index.php as follows.

    PHP Code:
            //  End -->
        </script>
    <table width="100%" border="1" cellpadding="0" cellspacing="0">
    <tr>
    <td valign=top width="40%" style="padding-right: 10px; padding-top: 2px;">
    <?php template_calendar($args); ?><br><?php include("modules/Calendar/TasksListView.php") ;?>

    </td>
    <?php if ($_REQUEST['view'] == 'day') { ?>
    <td valign=top width="60%" rowspan="2">
    <?php include("modules/Calendar/ListView.php") ;?>
    </td>
    <?php ?>
    </tr>
    </table>
    ...resulting in the format depicted in attached screenShot wherein everything works as expected... EXCEPT THAT FOR THE LIFE OF ME... I can't seem to figure out how to get the mass_update_form and PREROW inputs to display in our new Schedule/Accounts/listview frame.

    In Calendar/ListView.php (variation on Accounts/ListView.php) I have set the following ...
    PHP Code:
    // since we may have two list views on this page (task list and accounts list),
    // don't use $currentModule as the query name, use Calendar_AccountList
    $queryName "CalendarAccountList";

    // $where is already set from task list - start with clean slate
    //if (!isset($where)) $where = "";
    $where "";

    $seedAccount = new Account();
    require_once(
    'modules/MySettings/StoreQuery.php');
    $storeQuery = new StoreQuery();
    if(!isset(
    $_REQUEST['query'])){
        
    $storeQuery->loadQuery($queryName);
        
    $storeQuery->populateRequest();
    }else{
        
    $storeQuery->saveFromGet($queryName); 
    AND FURTHER DOWN...
    PHP Code:
    $ListView = new ListView();
    $ListView->initNewXTemplate('modules/Accounts/ListView.html',$current_module_strings);
    $ListView->shouldProcess true;
    $ListView->show_mass_update true;
    $ListView->show_mass_update_form true;

    $ListView->setHeaderTitle($current_module_strings['LBL_LIST_FORM_TITLE']);
    global 
    $current_user;
    if(
    is_admin($current_user) && $_REQUEST['module'] != 'DynamicLayout' && !empty($_SESSION['editinplace'])){    
        
    $ListView->setHeaderText("<a href='index.php?action=index&module=DynamicLayout&from_action=ListView&from_module=".$_REQUEST['module'] ."'>".get_image($image_path."EditLayout","border='0' alt='Edit Layout' align='bottom'")."</a>" );
    }

    $ListView->setQuery($where"""name""ACCOUNT");
    $ListView->setAdditionalDetails(true);
    $ListView->setAdditionalDetails(true);
    $ListView->processListView($seedAccount"main""ACCOUNT"); 
    But no luck. I've even gone so far as to replace Campaigns/index.php with Accounts/index.php,
    but can't get the mass_update form and PREROW checkboxes to show.

    Please. What am I missing?
    Attached Images Attached Images  

Thread Information

Users Browsing this Thread

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

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
  •