Home › Forums › Guriddo Suito PHP › Multi Y Dimension
Tagged: Multi Y Dimension
Hi…
This code is not working when I want to create multi YDimension … It always appear last column.
|
1 2 3 4 5 6 7 8 9 10 11 12 13 |
$pivot->setxDimension(array( array("dataName"=>"NOCOA", "width"=>150) )); // Grid yDimension settings $pivot->setyDimension(array( array("dataName" => "TYPES", "width"=>185), array("dataName" => "BL") )); |
We will try to reproduce the proble, but could you please send to us a small working example, which demonstrates the problem.
Also which version of the JavaScript is used?
Kind Regards,
Will
Guriddo Support Team
I’m sorry for my late answer.
https://s18.postimg.org/i6zni33i1/Selection_159.jpg
Here’s my demo : http://multidayacipta.com/demos/hrd/info/pivot.php
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 |
.... $pivot = new jqPivotGrid($conn); $pivot->SelectCommand =" SELECT N.NERACAID, N.THBL, N.TIPE, N.NOCOA, N.DEBET, N.KREDIT FROM NERACA N "; $pivot->setGridOptions(array( "rowNum"=>999999, "height"=>200,"width"=>1000, "sortname" => "NOCOA", "rowList"=>array(10,20,50,10), "shrinkToFit"=>false, "caption"=>"Group Nama", "groupingView"=>array("groupCollapse"=>true) )); $pivot->setData('pivot_.php'); // Grid xDimension settings $pivot->setxDimension(array( array("dataName"=>"NOCOA", "width"=>150) )); // Grid yDimension settings $pivot->setyDimension(array( array("dataName" => "THBL", "width"=>185), array("dataName" => "TIPE", "width"=>185) )); // Members $pivot->setaggregates(array( array( "member"=>'DEBET', "aggregator"=>'sum', "width"=>'120', "label"=>'Debet', "formatter"=>'number', "align"=>'right', // the summary type set the sum function of the groups "summaryType"=>'sum' ), array( "member"=>'KREDIT', "aggregator"=>'sum', "width"=>'120', "label"=>'Kredit', "formatter"=>'number', "align"=>'right', // the summary type set the sum function of the groups "summaryType"=>'sum' ) )); $pivot->setPivotOptions(array( "rowTotals" => true, "colTotals" => true )); $pivot->ignoreCaseSearch = true; $pivot->setSearchOptions( array ( "sqlfunc" => "UPPER", "phpfunc" => "strtoupper" )); //$grid->setNavOptions('navigator',array("csv"=>true, "pdf"=>true)); $pivot->setFilterOptions(array("stringResult"=>true, "searchOperators"=>true)); $pivot->setExcelOptions(array( "file_type"=>"Excel5", //Excel2007,Excel5,xml "file"=>"neraca.xls", "start_cell" => "A1", "font"=>"Arial", "font_size"=>11, "protect" => false, )); $pivot->navigator = true; $pivot->setNavOptions('navigator', array("excel"=>true,"add"=>false,"edit"=>false, "del"=>false)); $pivot->renderPivot("#grid","#pager", true, null, true, true); |
And there’s something weird… No Excel export button too…
Just Info that your demo page of export excel is not working…
http://www.guriddo.net/demo/demos/pivotgrid/export/default.php
no button show up…
Hello,
First of all thank you very much for the test case and demo and that you find these problems.
1.Currently there is a problem when rowTotal is set to true. We will try to fix this ASAP. In order to achieve what you want temporary set this parameter to false – i.e:
|
1 2 3 4 |
$pivot->setPivotOptions(array( "rowTotals" => false, "colTotals" => true )); |
2. The code for the buttons in pivot is fixed in JavaScript in GitHub. If you have difficulties to get it, please let us know
Kind Regards,
Will
Guriddo Support Team
Hello, First of all thank you very much for the test case and demo and that you find these problems.
1.Currently there is a problem when rowTotal is set to true. We will try to fix this ASAP. In order to achieve what you want temporary set this parameter to false – i.e: <!– Crayon Syntax Highlighter v_2.7.2_beta –><table class=”crayon-table”>
<tbody>
<tr class=”crayon-row”>
<td class=”crayon-nums ” data-settings=”show”>1234</td>
<td class=”crayon-code”><span class=”crayon-sy”>$</span><span class=”crayon-v”>pivot</span><span class=”crayon-o”>-></span><span class=”crayon-e”>setPivotOptions</span><span class=”crayon-sy”>(</span><span class=”crayon-t”>array</span><span class=”crayon-sy”>(</span><span class=”crayon-s”>”rowTotals”</span> <span class=”crayon-o”>=</span><span class=”crayon-o”>></span> <span class=”crayon-t”>false</span><span class=”crayon-sy”>,</span><span class=”crayon-s”>”colTotals”</span> <span class=”crayon-o”>=</span><span class=”crayon-o”>></span> <span class=”crayon-t”>true</span><span class=”crayon-sy”>)</span><span class=”crayon-sy”>)</span><span class=”crayon-sy”>;</span></td>
</tr>
</tbody>
</table>
It’s working… Thank you…
<!– [Format Time: 0.0008 seconds] –>
2. The code for the buttons in pivot is fixed in JavaScript in GitHub. If you have difficulties to get it, please let us know Kind Regards, Will
would you like to send me a link to fix it ?
Hello,
You have a e-mail.
Kind Regards,
Will
Guriddo Support Team
Hello, First of all thank you very much for the test case and demo and that you find these problems. 1.Currently there is a problem when rowTotal is set to true. We will try to fix this ASAP. In order to achieve what you want temporary set this parameter to false
Hi…
Any progress for this bug ?
Best Regards,
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top