Skip to main content
September 22, 2009
Question

cfgridkey=null, empty row

  • September 22, 2009
  • 1 reply
  • 610 views

When my cfgrids return no data after a search with no results then the click function fires. This causes all sorts of errors.

I cant understand it as the cfgrid is set to selectonload=false. The click event then fires with a cfgridkey=null.

its a javascript function and i have tried to capture the null event with some if statements but they get ignored..

This topic has been closed for replies.

1 reply

Participant
September 28, 2009

There are a couple of ways to work around this known quirk.

I embed the href right in the sql as follows:

SELECT ,'<a target="_blank" href="index.cfm?event=registration.view&showmenu=no&oid_registration='|| reg.oid_registration
                        ||'">'|| registrationID||'</a>'AS registrationID

I've seen other threads where additional interrogation of the data is accomplished by using a function to return the href