Advertisement
Guest User

Untitled

a guest
Jul 20th, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1. public void onActionComplete(Form form, int httpStatus, String responseText) {
  2. // recogemos el mensaje
  3. JavaScriptObject jso = JSON.decode(responseText);
  4. String success = JavaScriptObjectHelper.getAttribute(jso, GWTConstants.SUCCESS);
  5.  
  6. if (success.equals(GWTConstants.SUCCESS_TRUE)) {
  7. // storeDesplegado.reload();
  8.  
  9. // Cargar los cuestionarios de las prestaciones del Plan de Trabajo Inicial
  10. JSONObject jsonObjetct = (JSONObject) JSONParser.parse(responseText);
  11. JSONArray array = (JSONArray) jsonObjetct.get(GWTConstants.DATA);
  12. ArrayList cuestionariosPrestaciones = new ArrayList();
  13. // array.size() = numero de programas
  14. for (int i = 0; i < array.size(); i++) {
  15. JSONArray arrayCuestionarios = (JSONArray) array.get(i);
  16. // arrayCuestionarios.size() = numero de cuestionarios del programa
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement