You need to sign in to do that
Don't have an account?
Maxxum
AJAX Toolkit - strange behavior
Hi all,
I have been playing around with the AJX toolkit for few days now and have been very pleased with it. I think it is a great toolkit.
Today I am facing a strange problem in the code that was working fine thus far.
I have a non-mandatory date field in my custom object. In my code I an querying data from this custom object and the date field is retrieved as part of the query. Today all of a sudden I am getting an exception:
"Invalid Type: You passed a null but the field requires a date".
Now when I remove this field from the query, everything works fine.
Also note that the query (with the date field) was working fine so far.
Is anything changing?
Regards,
-Rajan
I have been playing around with the AJX toolkit for few days now and have been very pleased with it. I think it is a great toolkit.
Today I am facing a strange problem in the code that was working fine thus far.
I have a non-mandatory date field in my custom object. In my code I an querying data from this custom object and the date field is retrieved as part of the query. Today all of a sudden I am getting an exception:
"Invalid Type: You passed a null but the field requires a date".
Now when I remove this field from the query, everything works fine.
Also note that the query (with the date field) was working fine so far.
Is anything changing?
Regards,
-Rajan
Hi Maxxum,
A little aggressive on the type enforcement. I'll fix this in time to get in the next update. I'll also post the fix here.
-RD
Ok, here is the fix. You will need to host the entire set of JS files yourself.
This function needs to be replaced in the domfunc.js file: