Hi Experts:
I was trying to put code into a Double Click event in Adobe LiveCycle Designer, but couldn't find the Event. There is a "Click" event, but that won't do.
Am I missing something here?
Thanks,
Jen
Hi Jen,
I was surprised the double click was missing but I use the following code in the click event, just replace the "[my double click code ]" and "[ my single click code ]" with your single and double click code. This code delays the single click event for 400ms to see if a second click is coming, you might want to play around with the 400ms as you have to balance the responsiveness of a single click with the double click.
if (new Date() - this.date < 400)
{
app.clearTimeOut(this.timeout);
this.date = undefined;
[my double click code ]
}
else
{
if (xfa.event.fullText !== "singleClick")
{
this.timeout = app.setTimeOut("xfa.event.fullText='singleClick';xfa.resolveNode('"+t his.somExpression+"').execEvent('click');",500);
}
else
{
[ my single click code ];
}
}
this.date = new Date();
North America
Europe, Middle East and Africa
Asia Pacific