WHEN-MOUSE-DOUBLE-CLICK in a non database block [message #321162] |
Mon, 19 May 2008 05:09  |
rahul15june
Messages: 35 Registered: May 2008
|
Member |
|
|
Hi,
I have a non database multirecord block with 5 text items. I want to add a "when mouse double click" trigger such that when ever users click on any one of the 5 text items, the when mouse double click trigger. which opens a stacked canvas and does some operation. My question,
1. Do we need to copy and paste the "WHEN-MOUSE-DOUBLE-CLICK" TRIGGER to all the five text items?
2. Can't I just place it at the block level, so that that when I double click on any item , it fires? I tried it , it did not work.
The reason being that everytime I have make a change in the trigger. I have to make the change in 5 places since currently I have it on all five text items.
thanks,
Rahul
|
|
|
|
|
Re: WHEN-MOUSE-DOUBLE-CLICK in a non database block [message #321413 is a reply to message #321325] |
Tue, 20 May 2008 03:49   |
rahul15june
Messages: 35 Registered: May 2008
|
Member |
|
|
Thanks Little foot and DJMartin.
DJ Martin- I don't have any other trigger define. I dont have nay message, pause etc in the trigger. For now, I followed Littlefoots advice because,
1. I tried creating the trigger on the non databvase multirecord block at block level, but nothing seemed to happen
2. I notice something really weird, I have a when mouse doubleclick trigger apart from a key next item trigger both having the same code in a text item. Somehow when I run the forms, and say i double click, it raises an error. So go back to the when mouse double click trigger, put a message, random twice and run the form again. - double click, the message pops up and close the form- comment out the messages and save/generate and run again.. everything works fine. But this happens everytime I try to modify forms.
3. Even when I had the trigger associated with all 5 text items, some functionality would not work with one of the text items although all had the same code.
I was wondering if I am the only one facing this issue. There seems to be some bug with the WHEN-MOUSE-DOUBLE-CLICK event in forms6i.
I then tried out little foots advice and that worked better. But still it would have been better to have the trigger at block level.
thanks,
Rahul
|
|
|
|
Re: WHEN-MOUSE-DOUBLE-CLICK in a non database block [message #321875 is a reply to message #321608] |
Wed, 21 May 2008 12:05   |
rahul15june
Messages: 35 Registered: May 2008
|
Member |
|
|
Hi DJMartin,
Thanks for the pointer. Yes, I generally have the bad habit of directly making a change and pressing Generate and Saving rather than doing a compile all. I will try to first compile all every time and then generate and keep a watch if the issue occurs again. By the way, does not compiling all and directly generating the form have any known issues/errors ? OR is it just a safety measure that you are mentioning.
Thanks for your help!
Rahul
|
|
|
|
|
|
|