Mess with save

QuestionsMess with save
S19K15 asked 7 years ago

When a developer using the file upload column and file view column in the same Grid but by mistake had set same name in these two array columns, when viewing the Grid and tries to reorder the columns ordering by drag and drop them, then column titles deathwatch from column cells and when user saves a Cell A from Column A can be saved in Column B and also the data in database are messing.

Seems like the save method works using array ordering with number indexing and not with key indexing… I think it will be safer this to change.

3 Answers
Abu Ghufran answered 7 years ago

The view column should be virtual column that should have editable:false so that it is not posted.
And there is general rule to use unique $col["name"] for each column.

S19K15 answered 7 years ago

Thanks for the response, I know that, but it will be great this to change in order to eliminate the possibility of all columns data to be changed!

Abu Ghufran answered 7 years ago

Ok, we'll review your requirement in future builds.
Thanks.

Your Answer

15 + 8 =

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?