Home News Contact Us Forum About Us Demos Products F.A.Q.
Shopping Cart
You currently have 0 items in your cart.


Recent Events
  • 31/12/2023 New Year SALE

    We are glad to announce New Year SALE. 25% discount for all our extensions. Use NY24 coupon code. Hurry up the discount is valid till 7 January.

  • 21/11/2023 BLACK FRIDAY 23 is coming

    BIG SALE, 35% discount for all our extensions. Use BF23 coupon code. Hurry up the discount is valid till 27 November.


2Checkout.com, Inc. is an authorized retailer of goods and services provided by ARI Soft. 2CheckOut




Follow us on twitter



Welcome, Guest
Please Login or Register.    Lost Password?

Colunm header naming bug?
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: Colunm header naming bug?
#68179
Colunm header naming bug? 3 Years, 2 Months ago Karma: 0
I noticed with the ARI Smart Content SQL setup, when I want to relabel the field names, I must must use underscore for two or more header names. I tried to use apostrophe around two more word header names (no underscore) but new relabeled header shows the apostrophes with the header name. When I use use no apostrophe around two more word header names and no underscore I get error. Just wondering if this may be a bug. I don't have have this issue when I use sql code in other components.
The administrator has disabled public write access.
 
#68187
Re:Colunm header naming bug? 3 Years, 2 Months ago Karma: 760
Hello,

Could you provide samples of configuration and SQL quer(ies)?

Regards,
ARI Soft
The administrator has disabled public write access.
 
#68193
Re:Colunm header naming bug? 3 Years, 2 Months ago Karma: 0
Here's my sql code:

------------------------------
SELECT
concat(firstname, ' ', (LEFT (lastname,1))) as Name,
attending_banquet as Attending_Banquet,
attending_family_night as Family_Night

FROM `kamc3_chronoforms_data_RSVP-20-Yr-Anniversary`

WHERE attending_family_night = "Yes Attending Family Night" OR attending_banquet = "YES"

ORDER BY firstname ASC

----------------------------------

I wanted the table headings to appear without the underscore when report is generated and an csv export is done, but when I code:

attending_banquet as "Attending Banquet",
attending_family_night as Family_Night

The double quotes are appearing and I tried using single quotes then, single quotes appearing. Which I don't want either. (see attached.)
Last Edit: 2021/09/15 13:12 By amheng5.Reason: added image
The administrator has disabled public write access.
 
#68194
Re:Colunm header naming bug? 3 Years, 2 Months ago Karma: 0
Ok so I played around and copied the special quote mark in From line and I got the results I wanted. No quotes, no underscore in the column header.

SELECT
concat(firstname, ' ', (LEFT (lastname,1))) as Name,
attending_banquet as `Attending Banquet`,
attending_family_night as `Family Night`

FROM `kamc3_chronoforms_data_RSVP-20-Yr-Anniversary`

WHERE attending_family_night = "Yes Attending Family Night" OR attending_banquet = "YES"

ORDER BY firstname ASC
Last Edit: 2021/09/15 13:25 By amheng5.Reason: added extra comments
The administrator has disabled public write access.
 
#68199
Re:Colunm header naming bug? 3 Years, 2 Months ago Karma: 760
We can't reproduce the problem. Could you provide a link to a page where it occurs and a temporary access to your J! backend by email so we can investigate the problem?

Regards,
ARI Soft
The administrator has disabled public write access.
 
Go to topPage: 1