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

Interesting problem with XML data populating CFGRID

New Here ,
Jan 12, 2010 Jan 12, 2010

Copy link to clipboard

Copied

Greetings all,

I ran into an issue yesterday and I'm not sure how to resolve it.  I have an XML file I load to my MSSQL 2005 database, from there I populate my CFGRID with the fields from the database table, pretty straightforward right?

It is until I realized the customer name appears to have a comma, so it looks like this:  Smith, John

It appears Cold Fusion (cfGrid?) is looking at the comma as a delimeter and taking the value after the comma and putting it into the next column, basically shoving everything to the right.

When I view the data in MSSQL Management Studio, it displays fine.  Does CF get the recordset from the database as a comma delimeted list?  Is this a known bug within CF?

I need to fix it obviously but I'm not sure if it's easier to do it from within CF or when I load the XML file into the database.

Any thoughts or guidance would be appreciated.

TOPICS
Advanced techniques

Views

354

Translate

Translate

Report

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 ,
Jan 14, 2010 Jan 14, 2010

Copy link to clipboard

Copied

LATEST

It appears I have found my own solution...........ListChangeDelims and it works great.  It removed

the comma from my text aligning everything correctly.

Votes

Translate

Translate

Report

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
Documentation