PDA

View Full Version : Is it possible to point a Calendar to a "Html" Field?



JoacimEriksson
26-Oct-2007, 07:34 AM
I want a calendar popup to a non data field?

I try this:
<input class="CalendarButton" type="button" value=" "
vdfAttachedFields="FomDate" onclick="show_VdfJPopCalendar(this,
'FomDate');" title="Pick a date" tabindex="-1" />

the problem is this, I want a report with some constrains like, Date fr and
Tom,
now I have a selection table to get around this but is it possible to get a
data popup to a non data field?

regards

joacim

Harm Wibier
26-Oct-2007, 09:12 AM
Hello Joacim,

Sounds like you would like me to finish the new help file with complete reference and examples a bit quicker ;)

The show_VdfJPopCalendar is special for fields inside a VDF form. You can use show_JPopCalendar for "non data fields".
<input class="CalendarButton" type="button" value=" " onclick="show_JPopCalendar(this, document.getElementById('my_date_input'), 'DD-MM-YYYY');" title="Pick a date" tabindex="-1" />

Where document.getElementById(..) is the reference to the input element where the popcalendar should put / get its date and the 'DD-MM-YYYY' is the date format like the known vdf date mask.

--
Regards,


Harm Wibier
Data Access Europe B.V.
http://www.dataaccess.nl/

"Joacim Eriksson" <joacim@brl.nu> wrote in message news:xPAmWy8FIHA.2312@dacmail.dataaccess.com...
>I want a calendar popup to a non data field?
>
> I try this:
> <input class="CalendarButton" type="button" value=" "
> vdfAttachedFields="FomDate" onclick="show_VdfJPopCalendar(this,
> 'FomDate');" title="Pick a date" tabindex="-1" />
>
> the problem is this, I want a report with some constrains like, Date fr and
> Tom,
> now I have a selection table to get around this but is it possible to get a
> data popup to a non data field?
>
> regards
>
> joacim
>
>

Bob Worsley
26-Oct-2007, 02:33 PM
Joacim, I think the report examples have what you are looking for. I
harrassed Edwin into doing that for me a couple of months ago...
Bob

"Joacim Eriksson" <joacim@brl.nu> wrote in message
news:xPAmWy8FIHA.2312@dacmail.dataaccess.com...
> I want a calendar popup to a non data field?
>
> I try this:
> <input class="CalendarButton" type="button" value=" "
> vdfAttachedFields="FomDate" onclick="show_VdfJPopCalendar(this,
> 'FomDate');" title="Pick a date" tabindex="-1" />
>
> the problem is this, I want a report with some constrains like, Date fr
and
> Tom,
> now I have a selection table to get around this but is it possible to get
a
> data popup to a non data field?
>
> regards
>
> joacim
>
>
>

JoacimEriksson
27-Oct-2007, 01:32 PM
thank you Bob and Harm and have a good sunday

// joacim

"Bob Worsley" <bworsley@comcast.net> skrev i meddelandet
news:HrxbqcAGIHA.2320@dacmail.dataaccess.com...
> Joacim, I think the report examples have what you are looking for. I
> harrassed Edwin into doing that for me a couple of months ago...
> Bob
>
> "Joacim Eriksson" <joacim@brl.nu> wrote in message
> news:xPAmWy8FIHA.2312@dacmail.dataaccess.com...
>> I want a calendar popup to a non data field?
>>
>> I try this:
>> <input class="CalendarButton" type="button" value=" "
>> vdfAttachedFields="FomDate" onclick="show_VdfJPopCalendar(this,
>> 'FomDate');" title="Pick a date" tabindex="-1" />
>>
>> the problem is this, I want a report with some constrains like, Date fr
> and
>> Tom,
>> now I have a selection table to get around this but is it possible to get
> a
>> data popup to a non data field?
>>
>> regards
>>
>> joacim
>>
>>
>>
>
>
>