Previous Topic: How to Populate Fields Using Select Box DataNext Topic: Select Box Data XML File


Create a Select Box Data XML File

Each Select Box Data XML file contains data that can be used to populate the options in the User Console controls when modifying a profile. You can populate options for task fields in any profile window with elements or child elements in a Select Box Data XML file.

Note: Attribute names are case-sensitive in XML.

Follow these steps:

  1. Create a text file with an .XML extension using a text or XML editor.
  2. Add the code in the text file based on the options you want to populate in the task field and save the file.Create a file using the format described above.

    The Select Box Data XML file is created. You can now import this XML file in the CA Identity Manager environment to populate the options in User Console controls.

Example: Create a Select Box Data XML File

This example creates the Select BoxData XML file that populates the state names and city names when the country is selected as Australia or UK:

<places name="places" displayName="places">
	<country name="AU" displayName="Australia">
		<state name="VIC" displayName="Victoria">
			<city name="MEL" displayName="Melbourne"/>
			<city name="GEEL" displayName="Geelong"/>
			<city name="BAL" displayName="Ballarat"/>
		</state>
		<state name="NSW" displayName="New South Wales">
			<city name="SYD" displayName="Sydney"/>
			<city name="NCL" displayName="Newcastle"/>
			<city name="WOD" displayName="Wodonga"/>
		</state>
		<state name="QLD" displayName="Queensland">
			<city name="BRIS" displayName="Brisbane"/>
			<city name="CNS" displayName="Cairns"/>
			<city name="TVL" displayName="Townesville"/>
		</state>
	</country>
<country name="UK" displayName="UK">
		<state name="SU" displayName="Surrey">
			<city name="LON" displayName="London"/>
			<city name="READ" displayName="Reading"/>
		</state>
		<state name="WLS" displayName="Wales">
			<city name="CDF" displayName="Cardiff"/>
			<city name="SWN" displayName="Swansea"/>
		</state>
	</country>
</places>