Symantec IGA

  • 1.  Populate dropdown using LAH

    Posted Jun 04, 2018 11:20 AM

    I'm trying to populate a task screen dropdown box with data from a LAH based |attribute|. 

     

    The LAH code seems to do its work. The toLogical() method returns the pipe(|) delimited string back to the task, but what happens is that the field (type:dropdown) has just one entry with the entire pipe-delimited string in it.

     

    It isn't separating out the individual options for the dropdown box. What am I missing?



  • 2.  Re: Populate dropdown using LAH
    Best Answer

    Posted Jun 04, 2018 01:33 PM

    Apparently I needed to flow the result of the LAH code through the getOptions() JavaScript initialization method for the dropdown box. This did the trick:

     

    function getOptions(FieldContext) {
    return FieldContext.value;
    }

     

    Credit to the following post/poster:

    Populate a dropdown list with Java 

     

    I'm still left with one issue: How do I mark one of these dropdown options as the "selected" one?