0 Replies Latest reply on Jul 29, 2009 10:03 AM by minli98

    How to use cfgridcolumn href

    minli98

      Hi,

       

      I have a cfgrid table with a list of items generated by a query.  I want to have url links from each of the items to their product page.  How do I do this?

       

      <cfform>
           <cfgrid name="products"
           query="getProducts"
           format="html"
           appendKey="false"
           >
      
           <cfgridcolumn name="pid" header="PID">
           <cfgridcolumn name="productName" header="Product"
                href="viewItem.cfm?pid=" hrefkey="pid"  />
      
           </cfgrid>
      </cfform>
      

       

       

       

      This code would produce links

      viewItem.cfm?pid=&cfgridkey=123
      

       

      I did a search on this topic, and someone suggested that I have to alter my viewItem.cfm page so as to be able to read cfgridkey as the product identifier.  I don't like this solution.  Is there not another way to get the following

      viewItem.cfm?pid=123
      

       

       

      Thanks,

      Min