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

text formatting in flash forms

New Here ,
Jun 22, 2006 Jun 22, 2006

Copy link to clipboard

Copied

is it possible to format text in a cfform type="flash." I have a cfgrid pulling information from a query, then a bunch of cfformitems that displays the data of the selected grid element. The problem I have is that in the database many of the columns are just huge chunks of text that I need to format to look presentable (replace specific characters with line breaks, etc.). I've tried researching ways to do this, but so far no luck. I tried taking care of the data before inputting it in the DB, however when you use the bind command in cfformitem it ignores the html characters.

For example:

<cfformitem type="html" name="ranges" readonly="YES" label="Ranges:" bind="{testGrid.dataProvider[testGrid.selectedIndex]['ranges']}" width="300" /> produces:

0Y 00M 00D^F^CL N/A^^CH N/A^, 0Y 00M 00D^M^CL N/A^^CH N/A^, 18^F^CL N/A^53-357^CH N/A^, 18^M^CL N/A^53-357^CH N/A^,

and I need it to format it into a nice looking table or something (delimiting on the ^ character and comma's).

I know that probably sounds convoluted but any help would be appreciated

TOPICS
Advanced techniques

Views

253

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
Contributor ,
Jun 22, 2006 Jun 22, 2006

Copy link to clipboard

Copied

Check out the REPLACE and LIST functions in CF.

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
New Here ,
Jun 22, 2006 Jun 22, 2006

Copy link to clipboard

Copied

yeah, normally that is the solution except you cant use CF tags in a cfform where format is flash

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
Contributor ,
Jun 23, 2006 Jun 23, 2006

Copy link to clipboard

Copied

LATEST
Replace before using in CFFORM or use ActionScript to edit.

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