1 Reply Latest reply on Oct 9, 2008 5:42 PM by Newsgroup_User

    DateChooser AllowMultipleSelect

    Vesta0424
      Hey,

      Users want use DateChooser to select a date range, however, the database requires that each day be submitted as a separate row. I know how to reference rangeStart rangeEnd, however, is there a way to easily loop through the selected range and identify each separate date (in ActionScript where I am building my data for the insert service)? If so, could someone send a snippet?

      Or, must I build each date with a loop that adds a day for each day select?

      Thanks!

      Georgia
        • 1. Re: DateChooser AllowMultipleSelect
          Level 7

          "Vesta0424" <webforumsuser@macromedia.com> wrote in message
          news:gclibe$9g3$1@forums.macromedia.com...
          > Hey,
          >
          > Users want use DateChooser to select a date range, however, the database
          > requires that each day be submitted as a separate row. I know how to
          > reference
          > rangeStart rangeEnd, however, is there a way to easily loop through the
          > selected range and identify each separate date (in ActionScript where I am
          > building my data for the insert service)? If so, could someone send a
          > snippet?
          >
          > Or, must I build each date with a loop that adds a day for each day
          > select?

          There's code that does this in the calendar example here:
          http://flexdiary.blogspot.com/2008/09/groupingcollection-example-featuring.html