How to Create a Smart List of Values for a Flow Parameter
In this example you create a Lookup of type "PAY_FLOWPARAMETER_VO" and use the Lookup to provide a list of values for a flow parameter. For example, you create a smart list of values for the Legal Entity flow parameter.
You define a list of values as a lookup type consisting of a set of lookup codes,
Use the Manage Common Lookups task to create a Lookup for Legal Entity parameter. After you create a lookup, use the Payroll Flow Patterns task to add the lookup to the flow as a smart list of values for the Legal Entity flow parameter.
How to Create a Lookup that Returns all the Value Objects for the Legal Entity Parameter
Let's look at the steps to create a lookup that returns all legal entities.-
Navigate to the Setup and Maintenance area under the Others tab on the Home page.
-
Click the Tasks icon on the right and click Search.
-
Search and select the Manage Common Lookups task.
-
On the Manage Common Lookups page search for the Lookup Type PAY_FLOWPARAMETER_VO. This lookup type fetches the smart list of values for the flow parameter.
-
Add a row in Lookup Codes and update the row with Lookup Code, P_LEGAL_ENTITY_ID.
-
Enter the Start Date and End Date.
-
Enter the Meaning. This value is displayed in the smart list of values lookup values in the Flow Parameter setup page.
-
Click Save and Close.
How to Add the Lookup to the Payroll Flow Pattern
Let's look at the steps to add the lookup to the payroll flow pattern.-
Navigate to the Payroll Flow Patterns quick link under Payroll in My Client Groups.
-
Create or edit the flow you want the smart list of values for Legal Entity added.
-
OIn the Flow Parameters page, add or edit a row where you want to add the smart list of values.
-
Enter the details of the parameter and select Smart LOV as the Display Format.
-
In the Lookup column select the meaning of the Lookup Type P_LEGAL_ENTITY_ID you entered in Step 7.
-
Save or submit the flow.
When you submit the flow, you are presented with a list of values for the Legal Entity parameter for you to select.