Skip navigation
Sean_AIF
Currently Being Moderated

Where is the Double-click Event in Adobe LiveCycle Designer

Nov 16, 2010 12:39 PM

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

 
Replies
  • Currently Being Moderated
    Nov 16, 2010 12:43 PM   in reply to Sean_AIF

    Designer forms do not have a Double click event. You only have Click event.

     

    Thanks

    Srini

     
    |
    Mark as:
  • Currently Being Moderated
    Nov 16, 2010 1:23 PM   in reply to Sean_AIF

    I do see a reason a double click is useful.

     

    You have fields and buttons in Designer, the same things you have onto a website and in other programs.

    And for those you also don't need a double click.

     
    |
    Mark as:
  • Currently Being Moderated
    Nov 16, 2010 1:26 PM   in reply to Sean_AIF

    What's limiting about single vs. double clicking? Just curious...

     

    I imagine you could come up with some sort of custom solution involving a counter and timeouts or something like that, but not sure.

     
    |
    Mark as:
  • Currently Being Moderated
    Nov 16, 2010 11:12 PM   in reply to Sean_AIF

    You can use a script in the click:event of the field to identify if the shift key is pressed down, when clicking into the field.

     

    if (xfa.event.shift == true)

         {

         script to execute if shift is pressed

         }

     
    |
    Mark as:
  • Currently Being Moderated
    Nov 17, 2010 12:38 AM   in reply to Sean_AIF

    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();

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 21, 2012 1:10 PM   in reply to BR001

    Solid Gold Bruce, great job!

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points