A PopList PJC with same C/S behaviour
By francois degrelle on Friday, March 27 2015, 15:22 - PJC - Javabean - Permalink
Purpose
This PJC is a workaround to the issue defined in the bug 3867157 on Metalink.
It allows having the same behaviour on the Web that the one it has on the C/S version. The When-List-Changed trigger would fire only when the mouse is clicked or when the Enter key is pressed, but not when the end-user types a letter to filter the list.
It is a PJC so that you do not need any Bean Area. Just fill the Implementation Class of your existing List Item.
The Java code
PopList.java
The implementation class of the List Item
oracle.forms.fd.PopList
The methods you can set
SET_CASE_SENSITIVE
By default, the poplist is case sensitive, but you can set it not sensitive.
Set_Custom_Property( 'BL.BT', 1, 'SET_CASE_SENSITIVE','false');
SET_LOG
Set_Custom_Property( 'BL.BT', 1, 'SET_LOG','true');
The sample dialog
. Download the poplist.zip file
. Unzip the file
. copy the poplist.jar file in the <ORACLE_HOME>/forms/java directory
. Edit your /forms/server/formsweb.cfg file to add the poplist.jar to both archive and archive_jini tags.
. Open the poplist.fmb module (Oracle Forms 9.0.2) the first List-Item uses the PJC, so that you can compare with the second that is a standard List-Item.
. Compile all and run the module