You are on page 1of 10

Steps to Create Dependent Values sets using only value sets An Example, The Location segments in Oracle Assets

should have the following Country State City Area Solution 1. Country 2. State Create a value set which is table dependent on PA_COUNTRY_V Create a value set (XX_STATE_VL) with validation type as Independent. This value set will be used to populate the values. After creating the values, note the FLEX_VALUE_SET_ID from FND_FLEX_VALUES_VL. Create a value set which is table dependent on FND_FLEX_VALUES_VL with the following code in the where clause flex_value_set_id=<flex_value_set_id> and substr(flex_value,1,2)= $flex$.<value set name of country> and enabled_flag=Y Create a value set (XX_CITY_VL) with validation type as Independent. This value set will be used to populate the values. After creating the values, note the FLEX_VALUE_SET_ID from FND_FLEX_VALUES_VL. Create a value set which is table dependent on FND_FLEX_VALUES_VL with the following code in the where clause flex_value_set_id=<flex_value_set_id> and substr(flex_value,1,5)= $flex$.<value set name of State> and enabled_flag=Y > India, USA, Canada > dependent on country > dependent on State > dependent on City

3. City

Similarly, create the balance value sets for area using the same concept. However, the value in the value sets should be with the logic of prefixing the previous segment value codes for each of its dependent values as follows Country Country_Code (ISO Codes) IN US Description India United States of America

State State_Code (ISO Codes) IN-KL IN-MH US-NY US-NJ City City_Code IN-MH-BOM IN-KL-COK US-NY-NYK US-NJ-NWK Description Bombay Cochin New York Newark Description Kerala Maharashtra New York New Jersey

Screenshots of sample where asset key flexfield is used with the combination of Country-CityArea

Country Value Set

City Value Set

Create another value set for City with validation type as Independent and create values as per sample shown below

Area Value Set

Create another value set for Area with validation type as Independent and create values as sample shown below

Process screenshots

You might also like