Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1
  • 2

TOPIC: Issue with Changing Column Captions

Issue with Changing Column Captions 4 years 4 weeks ago #701

  • allen
  • allen's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 8
  • Karma: 0
I am having an issue that when I change the column captions under columns the data disappears. Am i doing this the wrong way or is this a known bug. I have tried with no CAPS and no special characters. ie. column name in DB is first_name, would like to display FirstName, First, first. As soon as I make a change and save the query no longer has the data. Another example is image is the column name but I may not want to display only that caption so i remove the Caption and the same thing happens.

Any help would be appreciated...

BTW I am a noob at this so I may jsut be overlooking something.
Last Edit: 4 years 1 week ago by viljem.
The administrator has disabled public write access.

Re: Issue with Changing Column Captions 4 years 2 weeks ago #710

  • tomaz
  • tomaz's Avatar
  • OFFLINE
  • Administrator
  • Posts: 707
  • Thank you received: 48
  • Karma: 8
Usually this is not a thing that causes problems. Have you excluded all other possible options?
How about posting a review on JED? Table JX, Card View JX, Paid Downloads JX
The administrator has disabled public write access.

Re: Issue with Changing Column Captions 4 years 1 week ago #720

  • allen
  • allen's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 8
  • Karma: 0
tomaz wrote:
Have you excluded all other possible options?

I am not sure what else to exclude. For example:

If create a grid with DB columns First_Name and Last_Name and leave the column captions alone the info displays correctly.

If I change the first column caption to First Name, the data shows up blank and the rest of the data remains.

It is almost as if the query that is being use to display the data is using the columnCaptions field instead of the columnNames in the jos_grids DB Table.

In fact I would venture to guess that is exactly what is happening, but I have no idea where to look to see, if that is the case.

This is the MAJOR issue with me being able to deploy this extension on my site. I do have some suggestions for enhancements, but will have to wait to see what is done with this issue first.

Any help would be greatly appreciated.

ps. I do not have Table JX, so I have not been able to see if it is OK in grid vs. card format
The administrator has disabled public write access.

Re: Issue with Changing Column Captions 4 years 1 week ago #722

  • tomaz
  • tomaz's Avatar
  • OFFLINE
  • Administrator
  • Posts: 707
  • Thank you received: 48
  • Karma: 8
Ok, you information was actually very helpful. We found that bug and we are preparing new version. In case you want to fix it right away you have to open file components/com_grid/layouts/CardView.php and change line 169 to
foreach ($conf_columns as $j) {
Sorry for the inconvenience.

Regards,
Toma┼ż
How about posting a review on JED? Table JX, Card View JX, Paid Downloads JX
The administrator has disabled public write access.

Re: Issue with Changing Column Captions 4 years 1 week ago #725

  • allen
  • allen's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 8
  • Karma: 0
Thanks... I started poking around yesterday and say that same line, but was not about to change it for fear that I may break something...

I will make the change so I can start using it today.

I will post a few enhancement requests later this week, but one that I would particularly be interested in is having an option to not display captions for individual columns... (i.e. I don't need to know that the image is actually called image. I guess I could just put a space but then wouldn't it still show a ":" next to the picture. This may be taken care of already but since i have had my problem, i can not check it. If it is not, I might suggest doing it with an if statement or something equivalent. (i.e. If columnCaptions != Null then ":", or something like that. I have not done any coding in almost 20 years so my notes/operaters may be wrong, but I hope I am clear enough.)

Thanks again for the great support.

Also, is there a way to change my user name from my email to something else?
The administrator has disabled public write access.

Re: Issue with Changing Column Captions 4 years 1 week ago #726

  • allen
  • allen's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 8
  • Karma: 0
I made the change and it no longer removes the data, however, the captions data is not changed. It is still using the columnNames to display the captions... so I am sure there is at least one more change that needs to take place, if not more than one...

Please let me know the location/values of the other changes and I will make the changes while I wait on an updated file.

Thanks again.
Last Edit: 4 years 1 week ago by viljem.
The administrator has disabled public write access.
  • Page:
  • 1
  • 2
Time to create page: 0.161 seconds