jpgrid_dist.php

Questionsjpgrid_dist.php
David Mills asked 10 years ago

There is an error somewhere in there, it no longer save an update.
I had to role back to an older version.

The version that has the issue is * @version 1.5.0 build 216-20140205
I have version * @version 1.5.0 build 186-20131105

The older one works

6 Answers
David Mills answered 10 years ago

I did more testing…

The newer build works fine but not with my grids.
The demoa work fine with it.

My grids don't, and no error codes.

Do you think
if (new_grid) will work?

David Mills answered 10 years ago

Add new row works but update will not work.

If I edit a row (by clicking the edit icon at in the action column), the change stays but when I refresh the grid, the change is not saved to the db.

When I click the edit icon at the bottom of the grid and edit via the form, the changes are not affecting the grid.

If almost like the grid is not executing the Update function.

David Mills answered 10 years ago

Here is more….

If I remove the code i used to set my columns example…

$col = array();
$col["title"] = "Date";
$col["name"] = "client_add_date";
$col["width"] = "10";
$col["editable"] = true; // this column is editable
$col["align"] = "left"; // this column is editable
$col["search"] = true; // this column is searchable
$col["formatter"] = "date";
$col["formatoptions"] = array("srcformat"=>'Y-m-d',"newformat"=>'d/m/Y');
$col["resizable"] = true;
$cols[] = $col;

again, just copied from a demo, the grid updates the table correctly.
As soon as I set the columns up, it won't update.
I'm doing more testing and will keep you up dated.

In the mean time, if anyone has a suggestion, please comment here.

Abu Ghufran answered 10 years ago

Hello Rogers,

Please debug using this process, and let me know the error message if not resolved.
https://phpgrid.desk.com/customer/portal/articles/926266

The firebug response error shows actual reason.

Rafael Rodrigues answered 10 years ago

Hi, I installed the update received by e-mail yesterday (sent by Abu) and I have exactly the problem described by David.
In the demo, everything seems ok.
In my table, I can insert and delete, but no update. It seems to do the update, but reloading nothing has been updated.
Using phperror after the update statement, I can see the error: It is the query of the update, which his correct.
I went in phpmyadmin paste the SQL query copied from the message error and the update was done!
Any ideas?

Abu Ghufran answered 10 years ago

Emailed you an update.

Your Answer

14 + 0 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?