but if I right click the item nothing happens, the trigger doesn't fire.<p>I tried this in Forms 6i client/server and Web forms 10.1.2.0.1. On 6i, cursor does not move to the item right-clicked, but at least the trigger fires, and reports Mouse_button_pressed = 3. But on web forms (running on Windows XP) the trigger does NOT fire at all.
I just tested this in Forms 188.8.131.52 and it works fine. Both left and right mouse click fire the WHEN-MOUSE-CLICKED trigger. So likely this was a bug in the version you are using. Are you aware that Forms 10 is no longer entitled to Error Correction? The terminal patch for this version is 10.1.2.3 (patch ID 5983622). I recommend to download and install this patch and retest. If it still doesn't work, it may be time to upgrade to a current version like 184.108.40.206.
If you already have 220.127.116.11 installed, patching is fairly easy. The patch ID for 18.104.22.168 is 15948641. I would also recommend patching WLS to 10.3.6 if you haven't already done so. This should be done before applying the 22.214.171.124 patch if you plan to do it. You must have a minimum of WLS 10.3.5 installed before moving to 126.96.36.199.
The WLS 10.3.6 patch IDs are as follows:
As always, be sure to follow the included ReadMe or Installation Guide before starting any installation.
I think what I tested earlier was not exactly what you described. Also, I discussed this with Development and they reminded me that the right mouse click action will not fire the WHEN-MOUSE-CLICK trigger if you have a pop-up menu attached to the item.
Development has corrected this problem. Because version 10 is no longer entitled to Error Correction, we will not provide a fix for that version. However, if you have a Support account, you can request a fix for the current versions which are 188.8.131.52 and 184.108.40.206. Contact Support for more information. Be sure to provide the bug number I mentioned previously.
For anyone unaware, the feature would most often be used in a WHEN-MOUSE-CLICK trigger with code that looks something like this:
button_pressed := :System.Mouse_Button_Pressed;
IF button_pressed = '1' THEN
message ('Button 1 pressed.');
ELSIF button_pressed = '2' THEN
message ('Button 2 pressed.');
message ('Button 3 pressed.');
Message was edited by: MichaelFerrante(Oracle)
I remind you i'm using forms 11g Rel2 (220.127.116.11). And the item has not pop-up menu attached.
If you have installed 18.104.22.168, can you test a form-level when-mouse-click on item (which has no pop-up menu) and see if it works?. I mean, it detects button 3 was pressed? That is all i need to know.
Filing fix request is fine but would take some time(if is accepted). Although i agree with current situation, i mean if right click is pressed on a item which has a pop-up menu attached, it should show the menu and do nothing else, not even fire WHEN-MOUSE-CLICK.
Regards, Luis ...:)