change lov query
DESCRIPTION
Change Lov QueryTRANSCRIPT
![Page 1: Change Lov Query](https://reader035.vdocuments.us/reader035/viewer/2022071805/563dba26550346aa9aa32177/html5/thumbnails/1.jpg)
Recently I had this requirement to restrict some of the values on an existing LOV item in a EBS form.Below are the steps required for the same.
![Page 2: Change Lov Query](https://reader035.vdocuments.us/reader035/viewer/2022071805/563dba26550346aa9aa32177/html5/thumbnails/2.jpg)
![Page 3: Change Lov Query](https://reader035.vdocuments.us/reader035/viewer/2022071805/563dba26550346aa9aa32177/html5/thumbnails/3.jpg)
To call a pl/sql API from forms personalization, do this
1. Personalize the form2. Create an action of type "BuiltIn"3. BuiltIn Type for Action should be "Execute a Procedure"
4. Argument should be as below
='declare v_field_value VARCHAR2(200) ; begin plsql_package.procedurenameHere ; end'
or alternately
='declare v_field_value VARCHAR2(200) ; begin apassi_prc ('''||${item.PO_CONTROL_RULES.OBJECT_CODE_DISPLAYED_VALUE.value}||'''); end'
Note the syntax, after =, entire declare begin end is within single quote.Also, there is no semi colon after "end"
You can pass field values as '''||${item.BLOCKNAME.FIELDNAME.value}||'''
![Page 4: Change Lov Query](https://reader035.vdocuments.us/reader035/viewer/2022071805/563dba26550346aa9aa32177/html5/thumbnails/4.jpg)
Call form by menu:
![Page 5: Change Lov Query](https://reader035.vdocuments.us/reader035/viewer/2022071805/563dba26550346aa9aa32177/html5/thumbnails/5.jpg)