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
-~----------~----~----~----~------~----~------~--~---