How to fill combofield with values from for loop.
Hi Kjell,
If I well understood what you mean, you can apply setOptionsList() or setOptionsMap() methods containing a for loop to your LookupField:
Map<String, Object> map = new LinkedHashMap<>();
for (int i = 0; i < 10; i++){
map.put("lookup option " + i, i);
}
lookupField.setOptionsMap(map);
More information here.