Board index » jbuilder » Initialize a Date field in a QueryDataSet

Initialize a Date field in a QueryDataSet


2004-06-10 09:01:25 AM
jbuilder22
Hello.
I need to initialize a Date field in a QueryDataSet as "null.
I receive an error if I try to make the following:
queryDataSet.setDate("dateField", null) ;
What can I do instead of the shown above?
Thanks in advance,
Mynor.
 
 

Re:Initialize a Date field in a QueryDataSet

Try:
queryDataSet.setUnassignedNull("dateField");
or
queryDataSet.setAssignedNull("dateField");
(The docs sure don't help to say which one is right)
regards,
Dar7yl (the 7 is silent)
"Mynor Paredes" < XXXX@XXXXX.COM >wrote in message
Quote
Hello.

I need to initialize a Date field in a QueryDataSet as "null.
I receive an error if I try to make the following:

queryDataSet.setDate("dateField", null) ;

What can I do instead of the shown above?
Thanks in advance,

Mynor.


 

Re:Initialize a Date field in a QueryDataSet

Mynor Paredes wrote:
Quote
Hello.

I need to initialize a Date field in a QueryDataSet as "null.
I receive an error if I try to make the following:

queryDataSet.setDate("dateField", null) ;

What can I do instead of the shown above?
Thanks in advance,

Mynor.
Null isn't a valid date. However, some JDBC drivers may support this. If you
are using a Column definition however (as some Date Mask), I doubt this
will work. Once you enter that column (via a JdbObject), the QueryDataSet
assumes a value has been entered, when the Mask is set.
 

{smallsort}