Drop down or Text box - display CSV

Hi Team. 

Looking for ideas or suggestions. 

Is it possible to have a field on the WI that when selected reads the value from a CSV file and displays all the values it finds?

Thanks in advance  

Parents
  • Hello, this is possible through the use of the onGetEffectivePolicy event handler and SetEffectivePolicyInfo. There is a good example of how to do this for the Department attribute in the Active Roles SDK titled "Checking Property Values". You can define a way/function to populate an array ($arr) with the values you want for the drop-down, from a CSV, and then specify the attribute ($Attrname) that should be populated with the array using this line:

    $Request.SetEffectivePolicyInfo($Attrname, $Constants.EDS_EPI_UI_POSSIBLE_VALUES, $arr)

Reply
  • Hello, this is possible through the use of the onGetEffectivePolicy event handler and SetEffectivePolicyInfo. There is a good example of how to do this for the Department attribute in the Active Roles SDK titled "Checking Property Values". You can define a way/function to populate an array ($arr) with the values you want for the drop-down, from a CSV, and then specify the attribute ($Attrname) that should be populated with the array using this line:

    $Request.SetEffectivePolicyInfo($Attrname, $Constants.EDS_EPI_UI_POSSIBLE_VALUES, $arr)

Children