Hi Arun,

Try putting a breakpoint in the line where you are getting the error and see
in the Variables window, what is the datatype of entry. I think it would not
be DateField and Flex is not able to type cast it. Somewhere something in
your code would be going wrong!

Regards,
Venkat
www.venkatv.com

On Fri, Oct 10, 2008 at 4:42 PM, Arun <[EMAIL PROTECTED]> wrote:

>
> Yes, I tried that initially, same error.
>
> Regards
>
>
> On Oct 10, 5:16 pm, "vishal lad" <[EMAIL PROTECTED]> wrote:
> > have you tried this     ?
> > (entry as DateField).text =value;
> >
> > On Fri, Oct 10, 2008 at 2:43 PM, Arun Jacob Elias <[EMAIL PROTECTED]
> >wrote:
> >
> > > Hello,
> >
> > > I have a form where the form is constructed dynamically.
> >
> > > I am using the same form for creating record and editing record.
> > > While doing the edit, I assign the selectedItem to the corresponding
> fields
> >
> > > by the following way.
> >
> > > * if (formActionValue == "2") {
> >
> > > (entry as TextInput).text = value;
> > > }*
> >
> > > Now the issue is with datefield.
> >
> > > When I tried to assign value to the datefield,
> > > like this
> >
> > > if (formActionValue == "2") {
> >
> > >             (entry as DateField).data =value;
> > >         }
> >
> > > I am getting error
> > > Cannot access a property or method of a null object reference.
> >
> > > How can I resolve this issue? Is this the correct way of assigning
> value to
> > > datefield?
> >
> > > Thanks and regards
> >
> > > Arun
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Flex 
India Community" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/flex_india?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to