vtiger Forum Index vtiger
The Honest Open Source CRM
 

Account Detail View - navigate Next - Previous
Click here to go to the original topic

 
       vtiger Forum Index -> Usability & Themes - 5.0.3
Previous topic :: Next topic  
Author Message
paulward2016



Joined: 21 Mar 2006
Posts: 16

Posted: Tue Mar 21, 2006 8:05 pm    Post subject: Account Detail View - navigate Next - Previous  

The one problem I having right now with vtiger is the ability to browse through the accounts and contacts without having to go back to the lsit view for every contact. Our sales team needs the ability to browse from one to the next without the hassle of having to repeatedly go back to the list screen? Any ideas??
Any help would be much appreciated.
Back to top  
cuefinder



Joined: 07 Dec 2006
Posts: 9

Posted: Thu Dec 07, 2006 7:29 pm    Post subject: Account Detail View - navigate Next - Previous  

I have a patch that solves this exact problem. Check it out at:
Persisten List Views
http://vtigerforge.fosslabs.com/frs/shownotes.php?release_id=111
Back to top  
inflatable



Joined: 23 Feb 2008
Posts: 14

Posted: Tue Feb 26, 2008 12:44 pm    Post subject: Re: Account Detail View - navigate Next - Previous  

Is there an alternate location for this patch, or maybe some simple instructions to change the required files?
Back to top  
emfglobal



Joined: 18 Dec 2007
Posts: 50

Posted: Tue Feb 26, 2008 2:43 pm    Post subject: Re: Account Detail View - navigate Next - Previous  

cuefinder wrote: I have a patch that solves this exact problem. Check it out at:
Persisten List Views
http://vtigerforge.fosslabs.com/frs/shownotes.php?release_id=111
FYI

Link is not working.....

Espen
Back to top  
opto



Joined: 21 Jul 2007
Posts: 148

Posted: Tue Feb 26, 2008 3:48 pm    Post subject: Re: Account Detail View - navigate Next - Previous  

I think the fosslabs pages are now somewhere on

http://forge.vtiger.com/

Klaus
Back to top  
struwwelpeter



Joined: 03 Jul 2006
Posts: 27
Location: Cardiff, S Wales, UK

Posted: Wed Feb 27, 2008 9:02 am    Post subject: Re: Account Detail View - navigate Next - Previous  

I tried that patch (below) to no avail. I've attached the reject file as well.
I applied it manually after that - the only new change that had not been implemented into the 5.0.3RC4 release was this bit that was meant to implement the persistent list views. I added it after line 226 in the current index.php in the document root of vtiger. Although it didn't 'break' anything - after about 15 minutes of tests I could not see any change in the default behavior.

Again - I would like a developer to chime in here and either confirm or deny if the 'persistent list views' are already a part of the RC4 release.
if yes, then
Does one have to enable them in some way?
if no, then
Will the patch provided in 2006 work with the RC4 release?
else
Will the developers mod the existing or provide a new one to implement these changes?

Looking forward to anyone's input.

-Peter Farrell
-Cardiff, Wales, UK

Code: // added by alex on 12/05/2006 to implement persistent views
if (isset($module) && $module != '' && isset($action) && $action == 'index') {
        if (array_key_exists('viewname', $_GET)) {
                $lastindex = Array();
                foreach ($_GET as $key => $value) {
                        if ($key != 'module' && $key != 'index') {
                                array_push($lastindex, "$key=$value");
                        }
                }
                $_SESSION['lastindex_'.$module] = join('&', $lastindex);
        }
        else {
                $lastindex = $_SESSION['lastindex_'.$module];
                $lastindex = split('&', $lastindex);
                if (is_array($lastindex)) {
                        foreach ($lastindex as $value) {
                                $pair = split('=', $value);
                                $key = $pair[0];
                                $value = $pair[1];
                                $_REQUEST[$key] = $value;
                        }
                }
        }
}
Back to top  
cuefinder



Joined: 07 Dec 2006
Posts: 9

Posted: Wed Feb 27, 2008 3:17 pm    Post subject: Re: Account Detail View - navigate Next - Previous  

The persisten views patch was made for vTiger version 4.2.3 and the code shown earlier goes on line 466 of index.php file in the vTiger root directory in the following context. I also was told by bushwack, the release manager of 4.3 or 4.4 that he was going to incorporate this patch in that release.

Code: $log->debug($_REQUEST);
$skipHeaders=false;
$skipFooters=false;
$viewAttachment = false;
$skipSecurityCheck= false;
//echo $module;
// echo $action;

// added by alex on 12/05/2006 to implement persistent views
if (isset($module) && $module != '' && isset($action) && $action == 'index') {
        if (array_key_exists('viewname', $_GET)) {
                $lastindex = Array();
                foreach ($_GET as $key => $value) {
                        if ($key != 'module' && $key != 'index') {
                                array_push($lastindex, "$key=$value");
                        }
                }
                $_SESSION['lastindex_'.$module] = join('&', $lastindex);
        }
        else {
                $lastindex = $_SESSION['lastindex_'.$module];
                $lastindex = split('&', $lastindex);
                if (is_array($lastindex)) {
                        foreach ($lastindex as $value) {
                                $pair = split('=', $value);
                                $key = $pair[0];
                                $value = $pair[1];
                                $_REQUEST[$key] = $value;
                        }
                }
        }
}

if(isset($action) && isset($module))
{
        $log->info("About to take action ".$action);
        $log->debug("in $action");
        if(ereg("^Save", $action) || ereg("^Delete", $action) || ereg("^Popup", $action) || ereg("^ChangePass
        {
                $skipHeaders=true;
                if(ereg("^Popup", $action) || ereg("^ChangePassword", $action) || ereg("^Export", $action) ||
                        $skipFooters=true;
                if(ereg("^downloadfile", $action) || ereg("^fieldtypes",$action))
                {
                        $viewAttachment = true;
                }
                if(($action == ' Delete ') && (!$entityDel))
                {
                        $skipHeaders=false;
                }
        }

        if($action == 'BusinessCard' || $action == 'Save')
        {
                 header( "Expires: Mon, 20 Dec 1998 01:00:00 GMT" );
                 header( "Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT" );
                 header( "Cache-Control: no-cache, must-revalidate" );
                 header( "Pragma: no-cache" );
        }

        if ( $action == "Import" &&
                isset($_REQUEST['step']) &&
                $_REQUEST['step'] == '4'  )
        {
                $skipHeaders=true;
                $skipFooters=true;
        }
        if($module == 'Users' || $module == 'Home' || $module == 'Administration' || $module == 'uploads' ||
        {
          $skipSecurityCheck=true;
        }
Back to top  
cuefinder



Joined: 07 Dec 2006
Posts: 9

Posted: Wed Feb 27, 2008 3:22 pm    Post subject: Re: Account Detail View - navigate Next - Previous  

The patch is available at this url now:
http://forge.vtiger.com/projects/usablecontrib/
Back to top  
struwwelpeter



Joined: 03 Jul 2006
Posts: 27
Location: Cardiff, S Wales, UK

Posted: Wed Feb 27, 2008 3:33 pm    Post subject: Re: Account Detail View - navigate Next - Previous  

Thanks for the update cuefinder -
Three things:
1. Can you clarify if this patch works with the current 5.0.3RC4 release? (It looks version specific in it's current form)

2. When you say line 466 of index.php you are referring to the 4.2.3 version of vtiger right?

3. Are you using the standard unix 'patch' command to implement this?

-Peter Farrell
Back to top  
 
       vtiger Forum Index -> Usability & Themes - 5.0.3
Page 1 of 1


Powered by phpBB Search Engine Indexer
Powered by phpBB 2.0.15 © 2001, 2002 phpBB Group