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

How To: bind="{txt_#recId#}"

Explorer ,
May 28, 2008 May 28, 2008
With a query result I am generating multiple rows with for inputs...

Each row has a hidden input with the ID of the record and 4 checkboxes, all 4 with the name "CRUD_#RecID#". I am trying to create a hidden input per row that and its value will be bound to "{CRUD_#RecID#}". However, I get the error that says this element does not exist.

Any help would be greatly appreciated.
374
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
Explorer ,
May 28, 2008 May 28, 2008
This works...
<cfdiv bind="{crud_#recID#}" />

but not this...
<cfinput type="text" name="tmp#currentrow#" bind="{crud_#recID#}" />
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
Guest
May 29, 2008 May 29, 2008

What the following BIND is FOR???
<cfinput type="text" name="tmp#currentrow#" bind="{crud_#recID#}" />

Why not do it directly like
<cfinput type="text" name="tmp#currentrow#" value="crud_#recID#" />
?

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
Participant ,
Jul 02, 2008 Jul 02, 2008
LATEST
It appears that he would like to have the value of the CFINPUT to be populated with whatever the crud_#recID# form element is set to.
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