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.
...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.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>
In Calendar/ListView.php (variation on Accounts/ListView.php) I have set the following ...
AND FURTHER DOWN...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);
But no luck. I've even gone so far as to replace Campaigns/index.php with Accounts/index.php,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 can't get the mass_update form and PREROW checkboxes to show.
Please. What am I missing?


LinkBack URL
About LinkBacks



Reply With Quote
Bookmarks