[flexcoders] Re: DateChooser setting displayedMonth, displayedYear does nothing
Thank's - I could solve it easily with your explanations. And now it is totally clear to me why it couldn't work. But there was no warning in the console. Thank's again _rico --- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote: > > I didn't run the code, but by looking at it, the selectableRange is > bound to a plain old object which doesn't support binding. You should > have seen a warning in the console at runtime. Thus at init time, the > selectableRange is bogus and the displayedMonth/Year probably get > screwed up as well. > > > > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On > Behalf Of rleuthold > Sent: Sunday, May 18, 2008 8:10 AM > To: flexcoders@yahoogroups.com > Subject: [flexcoders] Re: DateChooser setting displayedMonth, > displayedYear does nothing > > > > Hi Alex, thanks for the reply. I made a simple test case, and could > figure out why it is not > working as expected- Can you shortly have look at this code: > > http://www.adobe.com/2006/mxml > <http://www.adobe.com/2006/mxml> " > creationComplete="build()"> > > > > > > selectableRange="{{rangeStart : _rangeStart, rangeEnd :_rangeEnd}}" > displayedMonth="10" > displayedYear="2006" > /> > > > selectableRange="{{rangeStart : _rangeStart_two, rangeEnd > :_rangeEnd_two}}" > displayedMonth="10" > displayedYear="2006" > /> > > > > Is that explainable ? > > Thank's _rico > > --- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> > , "Alex Harui" wrote: > > > > I'd make a simple test case and see if it works there. Are you sure > > your compDateRange has two elements with valid values? > > > > > > > > From: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> > [mailto:flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> > ] On > > Behalf Of rleuthold > > Sent: Saturday, May 17, 2008 6:05 AM > > To: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> > > Subject: [flexcoders] DateChooser setting displayedMonth, > displayedYear > > does nothing > > > > > > > > Hi, > > > > I have a DateChooser in a popUp window. If I set the displayedMonth > and > > displayedYear > > properties on that DateChooser (after creating the popup), nothing > > happens. The display is > > still on the month and year previously selected/displayed. Does > anybody > > have an idea ? > > > > code (parent comp): > > > > _datePickerWin = > > DateRangerPopUp(PopUpManager.createPopUp(Application.application as > > DisplayObject, DateRangerPopUp, true)); > > _datePickerWin.compDateRange = _dateRange; > > > > code (DateRangerPopup): > > public function set compDateRange(dateRange:Array):void > > { > > _compDateRange = dateRange; > > > > dateChooser.selectedRanges = [ {rangeStart: _compDateRange[0], > rangeEnd: > > > > _compDateRange[1] }]; > > > > dateChooser.displayedMonth = _compDateRange[1].month; > > dateChooser.displayedYear = _compDateRange[1].fullYear; > > > > > > Thank's rico > > >
RE: [flexcoders] Re: DateChooser setting displayedMonth, displayedYear does nothing
I didn't run the code, but by looking at it, the selectableRange is bound to a plain old object which doesn't support binding. You should have seen a warning in the console at runtime. Thus at init time, the selectableRange is bogus and the displayedMonth/Year probably get screwed up as well. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of rleuthold Sent: Sunday, May 18, 2008 8:10 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: DateChooser setting displayedMonth, displayedYear does nothing Hi Alex, thanks for the reply. I made a simple test case, and could figure out why it is not working as expected- Can you shortly have look at this code: http://www.adobe.com/2006/mxml <http://www.adobe.com/2006/mxml> " creationComplete="build()"> Is that explainable ? Thank's _rico --- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> , "Alex Harui" <[EMAIL PROTECTED]> wrote: > > I'd make a simple test case and see if it works there. Are you sure > your compDateRange has two elements with valid values? > > > > From: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> [mailto:flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> ] On > Behalf Of rleuthold > Sent: Saturday, May 17, 2008 6:05 AM > To: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> > Subject: [flexcoders] DateChooser setting displayedMonth, displayedYear > does nothing > > > > Hi, > > I have a DateChooser in a popUp window. If I set the displayedMonth and > displayedYear > properties on that DateChooser (after creating the popup), nothing > happens. The display is > still on the month and year previously selected/displayed. Does anybody > have an idea ? > > code (parent comp): > > _datePickerWin = > DateRangerPopUp(PopUpManager.createPopUp(Application.application as > DisplayObject, DateRangerPopUp, true)); > _datePickerWin.compDateRange = _dateRange; > > code (DateRangerPopup): > public function set compDateRange(dateRange:Array):void > { > _compDateRange = dateRange; > > dateChooser.selectedRanges = [ {rangeStart: _compDateRange[0], rangeEnd: > > _compDateRange[1] }]; > > dateChooser.displayedMonth = _compDateRange[1].month; > dateChooser.displayedYear = _compDateRange[1].fullYear; > > > Thank's rico >
[flexcoders] Re: DateChooser setting displayedMonth, displayedYear does nothing
Hi Alex, thanks for the reply. I made a simple test case, and could figure out why it is not working as expected- Can you shortly have look at this code: http://www.adobe.com/2006/mxml"; creationComplete="build()"> Is that explainable ? Thank's _rico --- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote: > > I'd make a simple test case and see if it works there. Are you sure > your compDateRange has two elements with valid values? > > > > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On > Behalf Of rleuthold > Sent: Saturday, May 17, 2008 6:05 AM > To: flexcoders@yahoogroups.com > Subject: [flexcoders] DateChooser setting displayedMonth, displayedYear > does nothing > > > > Hi, > > I have a DateChooser in a popUp window. If I set the displayedMonth and > displayedYear > properties on that DateChooser (after creating the popup), nothing > happens. The display is > still on the month and year previously selected/displayed. Does anybody > have an idea ? > > code (parent comp): > > _datePickerWin = > DateRangerPopUp(PopUpManager.createPopUp(Application.application as > DisplayObject, DateRangerPopUp, true)); > _datePickerWin.compDateRange = _dateRange; > > code (DateRangerPopup): > public function set compDateRange(dateRange:Array):void > { > _compDateRange = dateRange; > > dateChooser.selectedRanges = [ {rangeStart: _compDateRange[0], rangeEnd: > > _compDateRange[1] }]; > > dateChooser.displayedMonth = _compDateRange[1].month; > dateChooser.displayedYear = _compDateRange[1].fullYear; > > > Thank's rico >