Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

cfgridcolumn value question

Guest
Apr 21, 2008 Apr 21, 2008
Hi,

I am pulling back a query that is populating a cfgrid cell with either a 1 or a 2. Instead of the 1, I'd like the grid to display "No", instead of 2, display "Yes".

If anyone has any thoughts on how to do this, I'd appreciate it!

cfwild
TOPICS
Advanced techniques
285
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Mentor ,
Apr 21, 2008 Apr 21, 2008
You could do it in the query, rather than in the output. What database are you using? Oracle has a DECODE() function specifically for changing one value to another, and most databases will support using a CASE statement in the SELECT, where you can perform conditional changes.

Phil
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Apr 22, 2008 Apr 22, 2008
LATEST
I'd just access the contents via Javascript and reformat them... using something like this...

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources