Professional Web Applications Themes

Binding CFSELECT MX7 - Coldfusion - Advanced Techniques

the solution posted by ArtNirvana is flawed - it too is going off the index instead of the value. a small modification can fix this - onchange="getstate.selectedIndex = artistGrid.dataProvider[artistGrid.selectedIndex]['STATE']" please note that if the last STATE is not all upper case it does not seem to work....

  1. #1

    Default Re: Binding CFSELECT MX7

    the solution posted by ArtNirvana is flawed - it too is going off the index
    instead of the value. a small modification can fix this -

    onchange="getstate.selectedIndex =
    artistGrid.dataProvider[artistGrid.selectedIndex]['STATE']"

    please note that if the last STATE is not all upper case it does not seem to
    work.

    amaro.nascosto Guest

  2. #2

    Default Re: Binding CFSELECT MX7

    b3k,

    I tried to apply Amaro's solution to my code and it does not work. Did you find the solution to your problem?

    Thanks!

    Raphael.
    Raphael Guest

  3. #3

    Default Re: Binding CFSELECT MX7

    I need to bind my selected CFGRID to 4 cfselect boxes. So when a user selects a
    row in the grid, the 4 cfselect boxes are populated with either yes or no. I
    have manually coded the option value='yes' and ='no', I just need a way to bind
    whether or not it is a yes or a no. Any help would be great, thanks!

    pflynn02 Guest

  4. #4

    Default Re: Binding CFSELECT MX7

    do the following on the onChange of the grid:

    for(var i=0; i < selectName.length; i++){
    selectName.selectedIndex = i
    if(selectName.selectedItem.data ==
    gridName.dataProvider[gridName.selectedIndex]["fieldName"]){
    break;
    }
    }

    This should work and you can match the value of the select to the value of the
    grid field.

    sloan2b Guest

  5. #5

    Default Re: Binding CFSELECT MX7

    Did anyone ever get this to work?
    standardCode Guest

  6. #6

    Default Re: Binding CFSELECT MX7

    Is there a way somebody can post a working example of this. I'm stuck on the same problem and I only see back and forth and not a working example. This would really help us.
    VirtualED Guest

Similar Threads

  1. Binding from grid to cfselect
    By dpinder123 in forum Coldfusion Flash Integration
    Replies: 4
    Last Post: December 8th, 07:30 PM
  2. CF7 CFSELECT BINDING
    By Ronsweb in forum Coldfusion Flash Integration
    Replies: 4
    Last Post: April 4th, 03:47 PM
  3. binding CFGRID data to a CFSELECT
    By pflynn02 in forum Macromedia ColdFusion
    Replies: 1
    Last Post: March 15th, 04:24 PM
  4. cfselect options dependent on choice from other cfselect
    By grice in forum Macromedia ColdFusion
    Replies: 2
    Last Post: March 15th, 02:46 AM
  5. CFFORM Binding CFSELECT
    By koenie in forum Macromedia ColdFusion
    Replies: 0
    Last Post: March 4th, 02:47 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139