Get all values from a picklist

Get all values from a picklist

Hello everyone,

I would like to get all of a picklist (dropdown) field's values (field name Inverter_Manufactuer_text) and add them to a list.

I then want to append that list to another picklist (field name Inverter_Manufactuer)

 What I have got so far is:
  1. temp_list = List(input.Inverter_Manufacturer_text);
    Inverter_Manufacturer:ui.append(temp_list.getall());

I am getting a 'not able to find 'getall' function error message at the moment


Any help appreciated!