Set Apex Popup LOV Item with Javascript
The returning value of a Popup LOV can be set with
apex.item('P20100_STRUCTURE_ID').setValue('10');
As you can see in the picture below, the corresponding shuttle control is updated with the selected value of 10, but this does not set the display value either. The input element is still empty.
The solution is very simple when you know both values. Just set the display value, too.
$('#P20100_STRUCTURE_ID').val('I/PI-MA2 » I/PI-MA21');
Now the display value is set right but the ui must be fixed to get the label over the value. Just add the class js-show-label to the container element from the Popup LOV item. Container elements always have the suffix _CONTAINER.
$("#P20100_STRUCTURE_ID_CONTAINER").addClass("js-show-label");