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