Examples of UdpValue


Examples of it.eng.spagobi.tools.udp.bo.UdpValue

      JSONArray udpValuesJSON = new JSONArray();

      if(udpValues != null){
        Iterator itUdpValues = udpValues.iterator();
        while(itUdpValues.hasNext()){
          UdpValue udpValue = (UdpValue)itUdpValues.next();
          if(udpValue != null){
            JSONObject jsonVal = new JSONObject();
            //jsonVal.put("family", udpValue.getFamily());
            jsonVal.put("label", udpValue.getLabel());
            jsonVal.put("value", udpValue.getValue());
            jsonVal.put("family", udpValue.getFamily());
            jsonVal.put("type", udpValue.getTypeLabel());
            udpValuesJSON.put(jsonVal);
          }       
        } 
      }
      result.put(UDP_VALUES, udpValuesJSON);
View Full Code Here

Examples of it.eng.spagobi.tools.udp.bo.UdpValue

      JSONArray udpValuesJSON = new JSONArray();

      if(udpValues != null){
        Iterator itUdpValues = udpValues.iterator();
        while(itUdpValues.hasNext()){
          UdpValue udpValue = (UdpValue)itUdpValues.next();
          if(udpValue != null){
            JSONObject jsonVal = new JSONObject();
            //jsonVal.put("family", udpValue.getFamily());
            jsonVal.put("label", udpValue.getLabel());
            jsonVal.put("value", udpValue.getValue());
            jsonVal.put("family", udpValue.getFamily());
            jsonVal.put("type", udpValue.getTypeLabel());
            udpValuesJSON.put(jsonVal);
          }       
        } 
        result.put(UDP_VALUES, udpValuesJSON);
      }
View Full Code Here

Examples of it.eng.spagobi.tools.udp.bo.UdpValue

          JSONObject objJS = (JSONObject)jsonArray.get(j);
          // only label and value information are retrieved by JSON object
          String labelJ = objJS.getString("name")
          String value = objJS.getString("value")

          UdpValue udpValue = new UdpValue();

          // reference id is the kpi id
          udpValue.setLabel(obj.getString("label"));
          udpValue.setValue(value);
          udpValue.setReferenceId(model.getId());

          // get the UDP to get ID (otherwise could be taken in js page)
          Udp udp = DAOFactory.getUdpDAO().loadByLabelAndFamily(labelJ, "MODEL");
          Domain familyDomain = DAOFactory.getDomainDAO().loadDomainById(udp.getFamilyId());
          logger.debug("Udp value assigning value "+value+" to UDP with label "+udp.getLabel()+ " and Model Instance with label "+ model.getLabel());
          udpValue.setLabel(udp.getLabel());
          udpValue.setName(udp.getName());
          udpValue.setFamily(familyDomain != null ? familyDomain.getValueCd() : null);
          udpValue.setUdpId(udp.getUdpId());

          udpValues.add(udpValue);
        }
        model.setUdpValues(udpValues);
       
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.