How To Change A LOV Query Using Forms Personalization
How To Change A LOV Query Using Forms Personalization
We can change the LOV query using form personalization. Sample provided below (Payment form).
Requirement:
We have to change the “type” field lov query for populating the custom values.
To achieve this we have to follow below process.
Step-1:
Login into application and switch the Payable Manager Responsibility .
Nav->Payment->Entry->Payments.
Here Type LOV currently shows 3 values . Instead we have the requirement to populate these values in the
LOV. (Manual, Netting, Payment Process Request, Quick, Refund).
Step-4: Check the record group for attached LOV and take the sql statement.
(select displayed_field, lookup_code from ap_lookup_codes where lookup_type = 'PAYMENT TYPE' and
lookup_code not in ('A','N') order by upper(displayed_field))
Step-5: Go to the payment form in application and navigate to form personalization form .
Nav:- help->Diagnostics-> Custom code ->Personalize
1. Seq :10
2. Description : Payment Type LOV
3. Level : Function
4. Enabled check box enable
5. Click on condition and assigned below properties.
6. Condition : WHEN-NEW-FORM-INSTANCE
7. Processing Mode : Not In Enter-Query Mode
Step-8: Click on action and create 3rd action and assigned below values.
1. Seq : 30
2. Type :Property
3. Language : All
4. Object Type : Item
5. Target Object PAY_SUM_FOLDER.PAYMENT_TYPE (Column Name)
6. Property name : VALUE
7. Value :Manual
Step-9: Save the all work and close the form and re-open the form then check the changes.
*************************************
Goal: Change the LOV in “Supplier Name” field in the Find “Invoice Form
(AP_APXINWKB)”
In the first filed, Supplier Name change LOV In such a way that no one can see the
Seq: 5
Description:
Level:
Form
Enabled:
checked
Trigger Event:
WHEN-NEW-FORM-INSTANCE
Condition:
Processing Mode:
Seq: 10
Type:
Builtin
Language:
all
Builtin type:
Argument: Paste your new SQL statement here. In this case it would be
FROM po_vendors_ap_v
Group Name:
ERP_SCHOOLS_ALL_VENDORS_NAME
Now Create New Record with below information
Seq:12
Type:
Property
Language:
All
Enabled:
Checked
Object Type:
LOV
Target Object:
INV_ALL_VENDORS_NAME
Property Name:
GROUP_NAME
Value:
ERP_SCHOOLS_ALL_VENDORS_NAME
Save it.
Click Validate
Query any supplier. You will see your changes to the LOV as shown below.