I have sollution it s like this, but now I have additional problem

This function is related to change event on DataChooser

private function pokupiDatum(eventObj:CalendarLayoutChangeEvent):void
                {
                         if (eventObj.currentTarget.selectedDate == null) {

                  Alert.show("Niste unijeli datum");
            }

                        var godina:String =
eventObj.currentTarget.selectedDate.getFullYear();
                        var mjesec:String = 
eventObj.currentTarget.selectedDate.getMonth
() + 1;
                        var dan:String = 
eventObj.currentTarget.selectedDate.getDate();

// using this i have date as I wanted
  var datum:String = eventObj.currentTarget.selectedDate.toDateString
();


                }

// now I need to get this variable datum inside this function

private function evoDogadjaj():void
                {
                        var userID:Number = parentDocument.userID;

//Dogadjaj is AS class

var NoviDogadjaj:Dogadjaj = new Dogadjaj;

                        NoviDogadjaj.Datum = datum;
                        NoviDogadjaj.IdKlijenta = parentDocument.IdKlijenta;
                        NoviDogadjaj.Opis = Opis.text;
                        NoviDogadjaj.Naziv = Naslov.text;

                        dodajDogadjaj.insertujDogadjaj(NoviDogadjaj);
                        resetujFormu();
                }

I set bindable for this var but this don t work

[Bindable]

public var datum:String;

But this don t work, any ideas

thx

--

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