CFGrid question - Help!

Ask a Question related to Coldfusion Database Access, Design and Development.

  1. #1

    Default CFGrid question - Help!

    Ok, I have spent days on this and have gotten nowhere. Can somebody help?

    I have a CFGrid displaying information from a database. I would like a user
    to be able to select a record and somehow pass the url to an edit screen so
    they can access the full record. I see entries in the help file for using
    Href and targets but I'm afraid this isn't clear. I already have the "edit"
    screen which successfully accepts a url variable passed to it, I just need
    that url variable set to what the user selects in the grid.

    Can somebody help me out?



    sysadmin Guest

  2. Similar Questions and Discussions

    1. cfgrid
      I use a ldap to populate my cfgrid. Therefore, I do not use any cfcolumns within the cfgrid. How would I adjust the widths of the columns to fit...
    2. Urgent CFGrid-Combo-DataProvider Question
      Dear all, I have this code to create combos in cfgrid. My question now is .. how to replace the hardcoded countries with query? The code is saved...
    3. CFGrid yet another question
      Ok, I have spent days on this and have gotten nowhere. Can somebody help? I have a CFGrid displaying information from a database. I would like a...
    4. Help with cfgrid question
      Ok, I have spent days on this and have gotten nowhere. Can somebody help? I have a CFGrid displaying information from a database. I would like a...
    5. cfgrid question
      I have a table that shows the stats for a league. wins, losses, ties, points, etc. I am trying to convert it to a cfgrid so each column can be...
  3. #2

    Default CFGrid question - Help!

    Ok, I have spent days on this and have gotten nowhere. Can somebody help?

    I have a CFGrid displaying information from a database. I would like a user
    to be able to select a record and somehow pass the url to an edit screen so
    they can access the full record. I see entries in the help file for using
    Href and targets but I'm afraid this isn't clear. I already have the "edit"
    screen which successfully accepts a url variable passed to it, I just need
    that url variable set to what the user selects in the grid.

    Can somebody help me out?



    sysadmin Guest

  4. #3

    Default Re: CFGrid question - Help!

    The help file is correct you will want to use the a href tag. Choose the
    column that you want the user to click (Name/Title/whatever)
    Then you will wrap the a href around the variable in the column and send the
    Id or whatever
    <a href="Mypage.cfm?ID=#query.ID#>#query.NAME#</A>
    You use the query that is populating the grid as the query that will send the
    id in the url.
    So now if my grid showed the following:
    Name Address City State Zip Phone
    All the names listed would be highlighted as a link.
    Hope this helps. Good luck.

    jmj 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