Passing the timestamp
I've discovered an interesting problem where suggested solutions don't seem to work.
I need to pass a DB2 timestamp to a module. Here's what I've been trying:
The timestamp from the table is "2011-04-08 08:21:09.995639"
I use URLEncodeFormat to change the spaces, and prepare to pass "2011%2D04%2D08%2008%3A21%3A09%2E995639"
<cfset templeaveid = #URLEncodedFormat(timestamp)# />
The passing code is:
<a href="dsp_pleave_edit.cfm?leaveid=#templeaveid#">Update</a>
When I get to the dsp_pleave_edit.cfm module, I dump the value (because I keep getting nothing) an lo! and behold, it's an empty string! Yes, I've tried it in ts raw form and decoded form. Both give the empty string.
<cfdump var=#URL.leaveid#><br />
<cfdump var=#URLDecode(URL.leaveid)#><br />
[empty string]
[empty string]
What am I doing wrong? No, I cannot use another field, the timestamp is the only unique row identifier on this table. This is definitely a stumper!
