Failed to display data from a Listbox on the platform
Dear,
with through an array or list of objects I can see the data connected to the mysql in the studio bonita.
But when I go to the platform, it does not show me the combos list data, which can be?.
With form 6.x if it shows the data.
With form UI design does not show.
I leave part of the code:
Thanks, Marcelo
import groovy.json.JsonBuilder;
example : Java UtilList
List
milista1 = new ArrayList();
while(resultset.next()){
def jsnob = new JsonBuilder(); def lin1 = jsnob {
nombre_cliente(resultset.getString("nombre_cliente")) }
milista1.add(lin1);
} return milista1;
example: java.util.Collection
import java.sql.ResultSet; import java.sql.SQLException; import java.util.ArrayList; import java.util.HashMap; import java.util.List;
List result = new ArrayList(); while(resultset.next()) { String intValue = resultset.getString(3); result.add(String.valueOf(intValue)); } resultset.beforeFirst(); return result;