PDA

View Full Version : Report calendar



Bob Worsley
30-Jun-2007, 07:02 PM
I created a report that has a date range as one of the selection criteria.
I tried using show_VdfJPopCalendar on the date controls, but got nothing
when I clicked the calendar button. Read the notes in the package and tried
show_JPopCalendar instead, and now I get an error when clicking the button -
"sValue has no properties".

The notes on show_JPopCalendar say it should be used without a vdf form, but
reports have a form tag, so I'm a bit confused. How should this work?

Also, can we somehow show a date mask on these non-data aware controls?

Bob

Edwin van der Velden
2-Jul-2007, 09:27 AM
To create a simple standalone calendar you could indeed use
show_JPopCalendar.

First thing you need is a input for the date:

<input type="text" id="date" name="date" />

Next you should create a calendarbutton and change the onlick event to call
show_JPopCalendar, note this has different parameters from the
show_VdfJPopCalendar:

<input class="CalendarButton" type="button" value=" "
onclick="show_JPopCalendar(this, document.getElementById('date'),
'DD-MM-YYYY');" title="Pick a date" tabindex="-1" />

The parameters are:
oControl, simply pass this as this parameter same as the
show_VdfJPopCalendar
oInput, pass the input field you want the date to be update in as object
sDateMask, the mask to use for the date, something like DD-MM-YYY or
DD/MM/YYYY


-Edwin



"Bob Worsley" <bworsley@comcast.net> wrote in message
news:xU5fkL3uHHA.5736@dacmail.dataaccess.com...
>I created a report that has a date range as one of the selection criteria.
> I tried using show_VdfJPopCalendar on the date controls, but got nothing
> when I clicked the calendar button. Read the notes in the package and
> tried
> show_JPopCalendar instead, and now I get an error when clicking the
> button -
> "sValue has no properties".
>
> The notes on show_JPopCalendar say it should be used without a vdf form,
> but
> reports have a form tag, so I'm a bit confused. How should this work?
>
> Also, can we somehow show a date mask on these non-data aware controls?
>
> Bob
>
>
>

Bob Worsley
2-Jul-2007, 11:26 AM
Worked nicely. The only part I missed was the getElementById part. Thanks,
Bob

"Edwin van der Velden" <edwin.van.der.velden@dataaccess.nl> wrote in message
news:Epw9SULvHHA.1992@dacmail.dataaccess.com...
> To create a simple standalone calendar you could indeed use
> show_JPopCalendar.
>
> First thing you need is a input for the date:
>
> <input type="text" id="date" name="date" />
>
> Next you should create a calendarbutton and change the onlick event to
call
> show_JPopCalendar, note this has different parameters from the
> show_VdfJPopCalendar:
>
> <input class="CalendarButton" type="button" value=" "
> onclick="show_JPopCalendar(this, document.getElementById('date'),
> 'DD-MM-YYYY');" title="Pick a date" tabindex="-1" />
>
> The parameters are:
> oControl, simply pass this as this parameter same as the
> show_VdfJPopCalendar
> oInput, pass the input field you want the date to be update in as object
> sDateMask, the mask to use for the date, something like DD-MM-YYY or
> DD/MM/YYYY
>
>
> -Edwin
>
>
>
> "Bob Worsley" <bworsley@comcast.net> wrote in message
> news:xU5fkL3uHHA.5736@dacmail.dataaccess.com...
> >I created a report that has a date range as one of the selection
criteria.
> > I tried using show_VdfJPopCalendar on the date controls, but got nothing
> > when I clicked the calendar button. Read the notes in the package and
> > tried
> > show_JPopCalendar instead, and now I get an error when clicking the
> > button -
> > "sValue has no properties".
> >
> > The notes on show_JPopCalendar say it should be used without a vdf form,
> > but
> > reports have a form tag, so I'm a bit confused. How should this work?
> >
> > Also, can we somehow show a date mask on these non-data aware controls?
> >
> > Bob
> >
> >
> >
>
>
>