Help with CFGridColumn and Href

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

  1. #1

    Default Re: Help with CFGridColumn and Href

    I must be missing something. Yes this works but only if I hard code the file
    names....

    ..."when you query your db, and one of the columns have the pdf file names -
    that is the same as this line pdf columns in the admin query that I hard
    coded. ( querySetCell(admin, "pdf", "file1.pdf"); )"

    I will not have knowledge of the file names, and there will potentially be
    hundreds of unique .PDF file names.

    Carolyn.Hajnasiewicz Guest

  2. Similar Questions and Discussions

    1. Flash CFGRIDCOLUMN Help
      Hey all, I'm using CFMX7. I'm curious if anyone has successfully used the Type="image" and/or the textColor= "(C2 LT 0 ? red : pink)",...
    2. CFGRIDCOLUMN VALUES Not Working
      I would like my editable CFGRID to display a list in some of the CFGRIDCOLUMN's. I have been unsuccessful at displaying values for user selection...
    3. cfgridcolumn and numberformat
      hello! how do we have to use the numberformat function in a flash-cfgrid? we want to achieve international number formats, e.g.: ?123.456,00 within...
    4. CFGRIDCOLUMN - flash form
      Is it possible to get text to appear on more than one line i.e. text wraping inside of a cfgridcolum, used inside of a flash form? These flash forms...
    5. cfgridcolumn value control
      When displaying a grid column value isn't possible to control the value displayed instead of what is actually in the database? I used the following...
  3. #2

    Default Re: Help with CFGridColumn and Href

    You don't need to know the file name, just the query column that contains
    the name. All the code is doing it attaching the value of the column in the
    selected row.

    If you want to send me a simple access db and a sample I'll see if I can
    tell why it isn't working for you.
    ---nimer


    "Carolyn.Hajnasiewicz" <webforumsuser@macromedia.com> wrote in message
    news:cv503b$78o$1@forums.macromedia.com...
    >I must be missing something. Yes this works but only if I hard code the
    >file
    > names....
    >
    > ..."when you query your db, and one of the columns have the pdf file
    > names -
    > that is the same as this line pdf columns in the admin query that I hard
    > coded. ( querySetCell(admin, "pdf", "file1.pdf"); )"
    >
    > I will not have knowledge of the file names, and there will potentially be
    > hundreds of unique .PDF file names.
    >

    Mike Nimer Guest

  4. #3

    Default Re: Help with CFGridColumn and Href

    For the record, the href attribute does not work in the Flash format. You need to use a Javascript if you want to link a row to a URL.

    Phiul Hayes
    SiriusPhil Guest

  5. #4

    Default Re: Help with CFGridColumn and Href

    The HREF attribute works in FLASH format for me.
    ArtNirvana Guest

  6. #5

    Default Re: Help with CFGridColumn and Href

    I haven't upgraded to CF7 yet, what's your take on the new Flash interface for
    CFGrid? CFGrid works so well for me and I am anxious to upgrade but would like
    to anticipate possible issues/resolution before hand.

    Carolyn.Hajnasiewicz Guest

  7. #6

    Default Re: Help with CFGridColumn and Href

    Hi Carolyn, If you haven't figured it out already, this will work.
    [url]http://www.macromedia.com/cfusion/webforums/forum/messageview.cfm?catid=3&amp;th[/url]
    readid=967328&amp;enterthread=y It will open the pdf in a new window. Mike

    MikeyJ Guest

  8. #7

    Default Re: Help with CFGridColumn and Href

    Carolyn, Just realized that you said only the pdf NAMES are in the column in
    the table. In my example, I stored the entire url in the table so I just
    needed to specify the column name and I was good to go. IF your pdf's are
    going to be in the same directory then you can add the first part of the url
    all the way up to the filename into the example I provided. If you have
    trouble figuring it out, let me know. And to respond to the couple of posts
    above your last, Flash CFGrid DOES NOT directly support the href property but
    you can use Actionscript not Javascript in the onChange property of the grid to
    emulate the functionality. Mike

    MikeyJ 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