Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: Navigation buttons problem in customized Project Tasks form

  1. #1
    rpompeo68's Avatar
    rpompeo68 is offline Member
    Join Date
    Feb 2009
    Location
    Rome
    Posts
    11

    Default Navigation buttons problem in customized Project Tasks form

    » Operating system type and version: CentOS 2.6.18-92.1.10.el5 #1 SMP
    » Sugar version and edition[I]: 5.2.0a Community Edition
    » Webserver type and version: Apache 2.2.3
    » PHP version[I]: 5.1.6-20.el5_2.1
    » MySQL server version: 5.0.45

    Installed modules:
    1) Connector for Google Calendar (1.0.7)
    2) SuperTimesheet (2.2)
    3) Team (0.98.12338)
    4) Helpdesk (1233157583)

    Team is deployed on these modules:
    - Bugs
    - Project
    - Project Tasks
    - Cases

    I customized Project Tasks adding some fields using SugarCRM Studio. This is the table created by SugarCRM in MySQL:

    CREATE TABLE `sugarcrm`.`project_task_cstm` (
    `id_c` char(36) NOT NULL,
    `activity_type_c` varchar(100) NOT NULL default 'Workorder',
    `job_code_c` varchar(6) default NULL,
    `estimated_cost_c` varchar(0) default '',
    `currency_id` char(36) default NULL,
    `team_id_c` char(36) default NULL,
    `requesting_team_c` varchar(255) NOT NULL,
    `team_id1_c` char(36) default NULL,
    `owner_team_c` varchar(255) NOT NULL,
    `team_id2_c` char(36) default NULL,
    `collaborating_team_1_c` varchar(255) default NULL,
    `team_id3_c` char(36) default NULL,
    `collaborating_team_2_c` varchar(255) default NULL,
    `team_id4_c` char(36) default NULL,
    `team_id5_c` char(36) default NULL,
    `collaborating_team_3_c` varchar(255) default NULL,
    `on_schedule_c` tinyint(1) default '1',
    `on_specs_c` tinyint(1) default '1',
    `note_c` text,
    PRIMARY KEY (`id_c`)
    ) ENGINE=MyISAM DEFAULT CHARSET=utf8

    I customized also the Projects Tasks forms edit, display and list.

    When I use the admin user there aren't any problem. I can navigate the list of 106 records using NEXT and END buttons.

    When I use a not administrative account, I can see only the first page of list but I can't navigate the list using NEXT and END buttons. I can select a single record to display and navigate the entire list displaying a single entry at time. Both Project and Project Tasks records have all Assigned Team=Everyone.

    I tested the problem with the latest releases of Firefox and Explorer and it doesn't seam related to a javascript malfunction but to something related to administrative permissions.

    Do I have to drop the cache of the Project Task form?
    (delete *.tpl inside /var/www/html/sugarcrm/cache/modules/ProjectTask/)
    Last edited by rpompeo68; 2009-02-18 at 03:35 PM.

  2. #2
    rpompeo68's Avatar
    rpompeo68 is offline Member
    Join Date
    Feb 2009
    Location
    Rome
    Posts
    11

    Default Re: Navigation buttons problem in customized Project Tasks form

    Submited as Bug Number: 27833

  3. #3
    rpompeo68's Avatar
    rpompeo68 is offline Member
    Join Date
    Feb 2009
    Location
    Rome
    Posts
    11

    Default Re: Navigation buttons problem in customized Project Tasks form

    In attachment my Project Tasks list
    Attached Images Attached Images  

  4. #4
    rpompeo68's Avatar
    rpompeo68 is offline Member
    Join Date
    Feb 2009
    Location
    Rome
    Posts
    11

    Default Re: Navigation buttons problem in customized Project Tasks form

    These are the fields added in Project Tasks form from SugarCRM Studio
    Attached Images Attached Images  

  5. #5
    rpompeo68's Avatar
    rpompeo68 is offline Member
    Join Date
    Feb 2009
    Location
    Rome
    Posts
    11

    Default Re: Navigation buttons problem in customized Project Tasks form

    Using Firebug the navigation buttons have the following html/javascript declaration:

    <td align='right' nowrap='nowrap' id='listViewPaginationButtons' class='listViewPaginationTdS1' width='90%'>
    <button type='button' title='Start' class='button' disabled>
    <img src='themes/Sugar/images/start_off.gif' alt='Start' align='absmiddle' border='0' width='13' height='11'>
    </button>
    <button type='button' class='button' disabled title='Previous'>
    <img src='themes/Sugar/images/previous_off.gif' alt='Previous' align='absmiddle' border='0' width='8' height='11'>
    </button>
    <span class='pageNumbers'>(1 - 20 of 106)</span>
    <button type='button' title='Next' class='button' onclick='return sListView.save_checks(20, "ProjectTask2_PROJECTTASK_offset")' >
    <img src='themes/Sugar/images/next.gif' alt='Next' align='absmiddle' border='0' width='8' height='11'>
    </button>
    <button type='button' title='End' class='button' onclick='return sListView.save_checks("end", "ProjectTask2_PROJECTTASK_offset")' >
    <img src='themes/Sugar/images/end.gif' alt='End' align='absmiddle' border='0' width='13' height='11'>
    </button>
    </td>
    Last edited by rpompeo68; 2009-02-18 at 05:56 PM.

  6. #6
    rpompeo68's Avatar
    rpompeo68 is offline Member
    Join Date
    Feb 2009
    Location
    Rome
    Posts
    11

    Question Re: Navigation buttons problem in customized Project Tasks form

    The function is loaded by Project Tasks through the js module sugar_grp1.js

    <script src="include/javascript/sugar_grp1.js?c=...." type="text/javascript">

    Editing ./include/javascript/sugar_grp1.js

    sugarListView.prototype.save_checks=function(offset,moduleString)
    {
    checks=sugarListView.get_checks();

    eval('document.MassUpdate.'+moduleString+'.value = offset');

    if(typeof document.MassUpdate.massupdate!='undefined'){docum ent.MassUpdate.massupdate.value='false';}
    document.MassUpdate.action.value=document.MassUpda te.return_action.value;
    document.MassUpdate.return_module.value='';
    document.MassUpdate.return_action.value='';
    document.MassUpdate.submit();

    return!checks;
    }
    Last edited by rpompeo68; 2009-02-18 at 05:42 PM.

  7. #7
    rpompeo68's Avatar
    rpompeo68 is offline Member
    Join Date
    Feb 2009
    Location
    Rome
    Posts
    11

    Default Re: Navigation buttons problem in customized Project Tasks form

    The problem is that Projet Tasks doesn't generate, for a not administrative account, this HTML code:

    <form id="MassUpdate" onsubmit="return check_form('MassUpdate');" name="MassUpdate" method="post" action="index.php">
    <input type="hidden" value="index" name="return_action"/>
    <input type="hidden" value="ProjectTask" name="return_module"/>
    <input type="hidden" value="true" name="massupdate"/>
    <input type="hidden" value="false" name="delete"/>
    <input type="hidden" value="false" name="merge"/>
    <input type="hidden" value="...." name="current_query_by_page"/>
    <input type="hidden" value="ProjectTask" name="module"/>
    <input type="hidden" value="MassUpdate" name="action"/>
    <input type="hidden" value="" name="lvso"/>
    <input type="hidden" value="" name="ProjectTask2_PROJECTTASK_ORDER_BY"/>
    <input type="hidden" value="0" name="select_entire_list"/>
    <input type="hidden" value="0" name="ProjectTask2_PROJECTTASK_offset"/>
    Last edited by rpompeo68; 2009-02-19 at 09:50 AM.

  8. #8
    rpompeo68's Avatar
    rpompeo68 is offline Member
    Join Date
    Feb 2009
    Location
    Rome
    Posts
    11

    Default Re: Navigation buttons problem in customized Project Tasks form

    This code is generated by the funcion in ./include/MassUpdate.php:

    function getMassUpdateFormHeader($multi_select_popup = false)
    {

    global $sugar_version;
    global $sugar_config;
    global $current_user;

    $query = base64_encode(serialize($_REQUEST));

    $bean = loadBean($_REQUEST['module']);
    $order_by_name = $bean->module_dir.'2_'.strtoupper($bean->object_name).'_ORDER_BY' ;
    $lvso = isset($_REQUEST['lvso'])?$_REQUEST['lvso']:"";
    $request_order_by_name = isset($_REQUEST[$order_by_name])?$_REQUEST[$order_by_name]:"";
    if($multi_select_popup)
    $tempString = '';
    else
    $tempString = "<form action='index.php' method='post' name='MassUpdate' id='MassUpdate' onsubmit=\"return check_form('MassUpdate');\">\n"
    . "<input type='hidden' name='return_action' value='{$_REQUEST['action']}' />\n"
    . "<input type='hidden' name='return_module' value='{$_REQUEST['module']}' />\n"
    . "<input type='hidden' name='massupdate' value='true' />\n"
    . "<input type='hidden' name='delete' value='false' />\n"
    . "<input type='hidden' name='merge' value='false' />\n"
    . "<input type='hidden' name='current_query_by_page' value='{$query}' />\n"
    . "<input type='hidden' name='module' value='{$_REQUEST['module']}' />\n"
    . "<input type='hidden' name='action' value='MassUpdate' />\n"
    . "<input type='hidden' name='lvso' value='{$lvso}' />\n"
    . "<input type='hidden' name='{$order_by_name}' value='{$request_order_by_name}' />\n";

  9. #9
    rpompeo68's Avatar
    rpompeo68 is offline Member
    Join Date
    Feb 2009
    Location
    Rome
    Posts
    11

    Default Re: Navigation buttons problem in customized Project Tasks form

    The function is called inside ./include/ListView/ListView.php

    function processListView($seed, $xTemplateSection, $html_varName)
    {

    .....

    require_once('include/MassUpdate.php');
    $mass = new MassUpdate();
    $add_acl_javascript = false;
    if(!isset($_REQUEST['action'])) {
    $this->shouldProcess=false;
    } else {
    $this->shouldProcess = is_subclass_of($seed, "SugarBean")
    && (($_REQUEST['action'] == 'index') || ('ListView' == substr($_REQUEST['action'],0,8)) /* cn: to include all ListViewXXX.php type views */)
    && ($_REQUEST['module'] == $seed->module_dir);
    }

    ......

    if($this->shouldProcess) {
    echo $mass->getDisplayMassUpdateForm(true, $this->multi_select_popup);
    echo $mass->getMassUpdateFormHeader($this->multi_select_popup);
    $mass->setSugarBean($seed);

  10. #10
    rpompeo68's Avatar
    rpompeo68 is offline Member
    Join Date
    Feb 2009
    Location
    Rome
    Posts
    11

    Default Re: Navigation buttons problem in customized Project Tasks form

    Waiting a patch for my problem I changed in Admin > System Setting

    Listview items per page: 1000
    Subpanel items per page: 1000

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Problem with workflow for project tasks
    By twguk1516 in forum Help
    Replies: 0
    Last Post: 2008-07-10, 11:52 AM
  2. Modify form buttons
    By nite_man in forum Developer Help
    Replies: 2
    Last Post: 2008-05-16, 07:04 AM
  3. Replies: 2
    Last Post: 2007-07-02, 05:28 PM
  4. Project Tasks Duration Problem
    By rycrostud in forum Feature Requests
    Replies: 1
    Last Post: 2007-06-01, 08:25 AM

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
  •