On a screen I am developing I have two daterange sliders. The first slider is working properly.
What I want to be able to do is have the selected start and end daterange from the first daterange slider to populate the outrangestartdate and outrangestopdate fields of the second daterange slider.
here is the code I am using in the property change event of the first daterange slider.
print event.source.parent.getComponent('Historical Gantt').outerRangeStartDate
print event.source.parent.getComponent('Historical Gantt').outerRangeEndDate
I put the prints in place to see what data was being passed over. Then I added into the second daterange slider two dynamic properties that were set to date just to see if things were comming over. The two dynamic properties OT1 and OT2 are being set properly from the first daterange slider. And the outerRangeEndDate of the second slider is getting set properly. However the outerRangeStartDate is not being set properly, it seems to take the 59min and 59seconds off of the outerRangeEndDate and that is what is populated in the outerRangeStartDate.
Slider1 set for start of 8/12/2009 0:00:00 and an end of 8/22/2009 11:59:59 – When this date information is passed over to the OT1 and OT2 dynamic properties it is correct. And when you look at the outerRangeEndDate that is also correct. But the data it populated in the outerRangeStartDate is 8/22/2009 11:00:00.
I have deleted the daterange component and put a new one there thinking I might have changed something. Still get the same results. Copy and pasted the working component, still get the same results.
I am currently running 3.3.1