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

Binding a selected row (cfgrid) to a button to pass...

LEGEND ,
Sep 18, 2006 Sep 18, 2006

Copy link to clipboard

Copied

How can I bind the selected row in a cfgrid to pass along to a page to
process the variable?
I am trying to look on Google, but all the Adobe forums are down for the
day.

I have a cfgrid that pulls a key column in the query that is associated with
the grid (show_id).
I am looking to bind that to 2 buttons and pass it along to processing
pages.

I tried the following based on another developers process, but when you
click my buttons, nothing happens:
<cfinput type="button" name="Submit_Edit" value="Edit"
bind="{Shows.dataProvider[Shows.selectedIndex]['show_id']}">
<cfinput type="button" name="Delete_Show" value="Remove"
bind="{Shows.dataProvider[Shows.selectedIndex]['show_id']}">

All I want to do is click the row I wish to either edit or delete, click the
appropriate button, and go to the appropriate page, passing the show_id
along.

As you can tell from my other posts that I am learning cfgrid and it is
fusterating to say the least. lol.




TOPICS
Advanced techniques

Views

281

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
LEGEND ,
Sep 18, 2006 Sep 18, 2006

Copy link to clipboard

Copied

Ok, I noticed my first problem. I didn't have the type set to submit. Ok,
that has been taken care of (changed to 'submit', but it still doesnt pass
the selected rows show_id. So..


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
LEGEND ,
Sep 18, 2006 Sep 18, 2006

Copy link to clipboard

Copied

LATEST
I am making progress...
I chnaged the button to:
<cfinput type="submit" name="show" label = "Edit Show"
value="{Shows.dataProvider[Shows.selectedIndex]['show_id']}">
and it passes the correct variable. One problem is that the button comes up
blank at first and then when you select a row, it only shows the show_id
number.

Is it possible to change the label to 'Edit' and still pass the variable or
am I hoping for too much?


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