Search This Blog

Wednesday, November 24, 2010

Restrict LOV using Form Persanalization

Purpose
The Purpose of this form persanalization is to restrict the list of responsibilities that a user can select

The standard List of Values (LoV) before the form persanalization looks like this:

The List of Values (LoV) after the form persanalization will show less responsibilities.
Restrict the List of Values of the Responsibilities
Before to start with the form persanalization , the following profile options should be set to the user making the form persanalization :
o ‘FND: Diagnostics’ set to ‘Yes’
o ‘Hide Diagnostics menu entry’ set to ‘No’
o ‘Utilities:Diagnostics’ set to ‘Yes’

From the horizontal menu select: Help -> Diagnostics -> Custom Code -> Personalize
In order to restrict the list of responsibilities to be showed in the LoV, we will need to tune the query that generate that LoV modifying the conditions specified in the WHERE clause.






Argument:
SELECT R.RESPONSIBILITY_NAME, A.APPLICATION_NAME, R.RESPONSIBILITY_ID, R.APPLICATION_ID FROM FND_APPLICATION_VL A, FND_RESPONSIBILITY_VL R WHERE ( R.APPLICATION_ID = A.APPLICATION_ID AND (R.VERSION = '4' OR R.VERSION = 'W' OR R.VERSION= 'M' OR R.VERSION = 'H') AND (R.END_DATE IS NULL OR (TRUNC(SYSDATE) BETWEEN R.START_DATE AND R.END_DATE)) ) AND (R.RESPONSIBILITY_NAME LIKE '%GB') ORDER BY RESPONSIBILITY_NAME
To customize the list of responsibilities in the LoV, the WHERE clause that should be modified is
AND (R.RESPONSIBILITY_NAME LIKE '%GB')

Close the form. Open the form again and test it. To get the query running behind the LOV download the form from the server and open it in forms builder and check the Record group of the LOV to get query. Do this persanalization at responsibility level.This needs to be done in the first screen on the form persanalization below processing mode.Please let me know if you face issue.

No comments:

Post a Comment