deecay / redmine_pivot_table

This Redmine plugin allows you to generate pivot table for issue analysis.
MIT License
52 stars 38 forks source link

its working in redmine 4.0.4 ??? #66

Closed ashrafalzyoud closed 5 years ago

ashrafalzyoud commented 5 years ago

can u help me about this not any data shown in pivottable if I have my oldDB but if I have newDB the pivottable working in redmine 4.0.4 I think need migrate

deecay commented 5 years ago

Hi, error message please?

ashrafalzyoud commented 5 years ago

aaaa

ashrafalzyoud commented 5 years ago

Current user: admin (id=1) Rendering plugins/redmine_pivot_table/app/views/pivottables/index.html.erb within layouts/base Rendered queries/_filters.html.erb (15.7ms) Rendered issues/_sidebar.html.erb (4.2ms) Rendered plugins/redmine_pivot_table/app/views/pivottables/index.html.erb within layouts/base (5486.1ms) Completed 200 OK in 5604ms (Views: 4976.0ms | ActiveRecord: 575.4ms) Started GET "/projects/sale2/pivottables?utf8=%E2%9C%93&set_filter=1&pivot=1&f%5B%5D=status_id&op%5Bstatus_id%5D=o&f%5B%5D=&table=&rows=&cols=&rendererName=&aggregatorName=&attrdropdown=" for 172.17.100.1 at 2019-07-17 01:20:51 +0300 Processing by PivottablesController#index as HTML Parameters: {"utf8"=>"✓", "set_filter"=>"1", "pivot"=>"1", "f"=>["status_id", ""], "op"=>{"status_id"=>"o"}, "table"=>"", "rows"=>"", "cols"=>"", "rendererName"=>"", "aggregatorName"=>"", "attrdropdown"=>"", "project_id"=>"sale2"} Current user: admin (id=1) Rendering plugins/redmine_pivot_table/app/views/pivottables/index.html.erb within layouts/base Rendered queries/_filters.html.erb (29.8ms) Rendered issues/_sidebar.html.erb (2.9ms) Rendered plugins/redmine_pivot_table/app/views/pivottables/index.html.erb within layouts/base (5413.0ms) Completed 200 OK in 5506ms (Views: 4852.0ms | ActiveRecord: 600.3ms) Started GET "/projects/sale2/pivottables" for 172.17.100.1 at 2019-07-17 01:21:51 +0300 Processing by PivottablesController#index as HTML Parameters: {"project_id"=>"sale2"} Current user: admin (id=1)

ashrafalzyoud commented 5 years ago

what i can do to this plugin work with my DB , i think the problem form another plugins but im unstall all it, but the problem still not work

deecay commented 5 years ago

Looks like a javascript error. Can you show me the Browser's developer console?

ashrafalzyoud commented 5 years ago

how i can show it to u ???Browser's developer console? all internet browser( IE AND CHORME and firefox) not working

deecay commented 5 years ago

Press F12 in Chrome.

ashrafalzyoud commented 5 years ago
          sorters: function(attr) {
              if(attr === "Status") {
                  return sortAs(["New", "Obsolete", "In Progress", "Resolved", "Feedback", "Closed", "Completed", "Rejected", "Approved", "قيد الدراسة"]);
              }
      else if(attr === "Tracker") {
          **### return sortAs(["Operational goal", "Task", "Action", "الهدف", "KPI "E"", " الهدف الإستراتيجي", "الهدف التشغيلي", "مهمة", "الأداء", "أسم العطاء", "احالة متعددة", "مؤشرات الاداء", "أجهزة الانذار", "الحماية الامنية", "المرافقات الامنية", "التأجير", "شركات الاتصالات", "متفرقة", "احصائيات العقود والاتفاقيات"]);**
      }
          },
          onRefresh: update_url,

          rendererName: "",
          aggregatorName: "",
          vals: [""],
            rows: [""],
            cols: [""],
          unusedAttrsVertical: false
       }, false, "en");

  $("#output").click(function(e){ if (e.target.href ) { window.open(e.target,'_blank');       return false;     }; }); });

ashrafalzyoud commented 5 years ago

your plugin support arabic language??? if tracker in arabic

deecay commented 5 years ago

Interesting to see Arabic :smile:

Is it possible to rename the column KPI "E" to something else that does not involve double quotation? This part seems to be the cause of javascript error.

ashrafalzyoud commented 5 years ago

thx for u very much its working now