2 grids in drupal

Questions2 grids in drupal
Hugo Palma asked 10 years ago

I have a problem with drupal.
when I add two or more grids in a module of drupal, the result is not correct.
The first grid is display satisfactory. but the second grid is display with
the empty cells.
Im doing a consult to the same table of the database.
For example:
first grid:
1.- select id, name, age from the user
second grid:
2.- select id, name, address, cellphone

and in the second grid only display the id and name data and the others data are not
display.

But if i add address and cellphone in the first query the fields are displaying but
when i do a update, the update doesnt work.

1 Answers
Abu Ghufran answered 10 years ago

Hello,

Make sure you reset $cols array for second grid after using it first.
Looks like variable for first grid is mixing with second.

Your Answer

20 + 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?