Binding CFSELECT MX7

Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.

  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. Similar Questions and Discussions

    1. Binding from grid to cfselect
      This is what I can do: Select a row from the Grid and bind to to several input boxes. I have select boxes that change the data in the grid (it...
    2. CF7 CFSELECT BINDING
      The above answer works great, however, if the option value goes into a double digit it does not work???. For example, if the id is 11 or any more...
    3. binding CFGRID data to a CFSELECT
      I have a flash CFGRID that lists my clients, when i select a client their data populates the form below the grid. When I select the client, i have a...
    4. cfselect options dependent on choice from other cfselect
      I have 2 cfselects. 1st is category, 2nd is sub category. both are populated from database queries, but the options from the sub cat vary based...
    5. CFFORM Binding CFSELECT
      I have the following code within a flashform in CFMX 7 <cfselect name='id' query='getZaal' value='roomid' display='name' label='Room'...
  3. #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

  4. #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

  5. #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

Posting Permissions

  • You may not post new threads
  • You may 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