Re: Passing null dates via WDDX

2005-11-04 Thread James Holmes
You can't pass an empty date, but you can pass a null. From

http://livedocs.macromedia.com/coldfusion/6.1/htmldocs/xml45.htm

Null values in WDDX are not associated with a type such as number or
string. The cfwddx tag converts WDDX Nulls to empty strings.

On 11/4/05, Chris Velevitch [EMAIL PROTECTED] wrote:
 How do you pass null dates via wddx?

 When I try passing:-

 var name='resetdate'
  datetime/datetime
 /var

 as part of my wddx data, cfwddx action='wddx2cfml' generates an
 invalid WDDX packet error.

 This data will be inserted in a database where this column will access nulls.


~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:223162
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Passing null dates via WDDX

2005-11-03 Thread Chris Velevitch
How do you pass null dates via wddx?

When I try passing:-

var name='resetdate'
 datetime/datetime
/var

as part of my wddx data, cfwddx action='wddx2cfml' generates an
invalid WDDX packet error.

This data will be inserted in a database where this column will access nulls.

Any ideas?


Chris
--
Chris Velevitch
Manager - Sydney Flash Platform Developers Group
www.flashdev.org.au

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:223152
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54