CFGrid yet another question

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

  1. #1

    Default 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 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 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...
    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 Re: CFGrid yet another question

    Don't recall how I stumbled across it. Probably turned on debugging for the
    Target page and saw what came in as URL variables. At any rate, back on
    CF4.5.1 SP2, CFGRID generates a URL variable called CFGRIDKEY so following is
    working for me. ID (poor choice I know) was the name of my Key column from the
    query that i wanted to pass. Also I wanted a null prmID up top to standardize
    since my action page could also be scheduled from a non_CFGRID source. When
    you eliminate it i don't know if you need to eliminate the ? or leave it there
    for the automatic CFGRIDKEY appending:

    Grid Page:
    <cfgrid HREF="action_GenQry_Detail.cfm?prmID="
    HREFKEY="ID"
    APPENDKEY="YES"
    target="frame_content"
    name="Whatever"
    Query="GetListEntries"
    HEIGHT="#Session.GenQry_Height#"
    WIDTH="#Session.GenQry_Width#">
    </cfgrid>

    Action Page:
    <cfif isDefined("URL.CFGRIDKEY")>
    <cfset Session.ClickID= #url.CFGRIDKEY#>
    <cfelse>
    <cfset Session.ClickID= #url.prmID#>
    </cfif>

    JMGibson3 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