Copy link to clipboard
Copied
is there a way to make this work? i'm trying to use different href values inside a cfgrid, based on the value returned by the query. for some reason, it always navigates to the second url, "someOtherURL". grid format is html
<cfgrid>
...
<cfif myQry.myColumn eq 'something'>
<cfgridcolumn href="someURL">
<cfelse>
<cfgridcolumn href="someOtherURL">
</cfif>
...
</cfgrid>
thanks a lot!
Copy link to clipboard
Copied
Take your if/else logic outside of the cfgrid tag so you can see what you are doing. I solve these sorts of problems like this:
<cfif WhatIHave is WhatIExpect>
output yes
<cfelse>
output no and WhatIExpect and WhatIHave.
If WhatIExpect looks like WhatIHave, check for whitespace.
Copy link to clipboard
Copied
thanks Dan, outside the grid works fine. the string returned is short and never contains white spaces. any other ideas?