fmsystem-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Fmsystem-commits] [16561]


From: nelson . guerra
Subject: [Fmsystem-commits] [16561]
Date: Sat, 8 Apr 2017 18:30:55 -0400 (EDT)

Revision: 16561
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=16561
Author:   nelson224
Date:     2017-04-08 18:30:54 -0400 (Sat, 08 Apr 2017)
Log Message:
-----------


Modified Paths:
--------------
    branches/dev-syncromind-2/property/inc/class.uireport.inc.php

Modified: branches/dev-syncromind-2/property/inc/class.uireport.inc.php
===================================================================
--- branches/dev-syncromind-2/property/inc/class.uireport.inc.php       
2017-04-08 05:20:42 UTC (rev 16560)
+++ branches/dev-syncromind-2/property/inc/class.uireport.inc.php       
2017-04-08 22:30:54 UTC (rev 16561)
@@ -62,12 +62,18 @@
 
                public function download()
                {
-                       return;
+                       $id = phpgw::get_var('id', 'int');
+                       
+                       $list = $this->bo->read_to_export($id);
+
+                       $names = array_keys($list[0]);
+
+                       $this->bocommon->download($list, $names, $names);
                }
 
                private function _get_filters()
                {
-                       $views = $this->bo->get_datasets();;
+                       $views = $this->bo->get_datasets();
                        foreach ($views as $view)
                        {
                                $list[] = array('id' => $view['id'], 'name' => 
$view['name']);
@@ -151,6 +157,21 @@
                                'parameters' => json_encode($parameters)
                        );
                        
+                       $tabletools[] = array
+                               (
+                               'my_name' => 'export',
+                               'text' => lang('download'),
+                               'type' => 'custom',
+                               'custom_code' => "
+                                                               var oArgs = " . 
json_encode(array(
+                                                                       
'menuaction' => 'property.uireport.download',                                   
                
+                                                                       
'export' => true,
+                                                                       
'allrows' => true
+                                               )) . ";
+                                               
+                                               download(oArgs);"
+                       );
+                       
                        $related_def = array
                                (
                                array('key' => 'id', 'label' => lang('ID'), 
'sortable' => true, 'resizeable' => true, 'hidden' => true),




reply via email to

[Prev in Thread] Current Thread [Next in Thread]