Package org.infoglue.cms.entities.management

Examples of org.infoglue.cms.entities.management.FormEntryValueVO


        formEntry = (FormEntry) createEntity(formEntry, db);
       
        Iterator<FormEntryValueVO> formEntryValueVOListIterator = formEntryValueVOList.iterator();
        while(formEntryValueVOListIterator.hasNext())
        {
          FormEntryValueVO formEntryValueVO = formEntryValueVOListIterator.next();
         
          FormEntryValue formEntryValue = new FormEntryValueImpl();
          formEntryValue.setFormEntry(formEntry);
          formEntry.getFormEntryValues().add(formEntryValue);
          formEntryValue.setValueObject(formEntryValueVO);
View Full Code Here


        statisticsMap.put("totalEntries", totalEntries);
       
        Iterator formEntryValueVOListIterator = formEntryValueVOList.iterator();
        while(formEntryValueVOListIterator.hasNext())
        {
          FormEntryValueVO formEntryValueVO = (FormEntryValueVO)formEntryValueVOListIterator.next();
         
          if(type.equals("percentage") || type.equals("numeric"))
          {
            Integer count = (Integer)statisticsMap.get("" + formEntryValueVO.getValue());
            if(count == null)
              statisticsMap.put("" + formEntryValueVO.getValue(), 1);
            else
              statisticsMap.put("" + formEntryValueVO.getValue(), count + 1);
          }
          else if(type.equals("average"))
          {
            try
            {
              totalValue = totalValue + Integer.getInteger(formEntryValueVO.getValue());
            }
            catch (Exception e)
            {
              logger.warn("Not a valid number:" + e.getMessage());
            }
View Full Code Here

  {
    Float sum = 0F;
    Iterator formEntryValueVOListIterator = formEntryValueVOList.iterator();
    while(formEntryValueVOListIterator.hasNext())
    {
      FormEntryValueVO formEntryValueVO = (FormEntryValueVO)formEntryValueVOListIterator.next();
     
      try
      {
        String value = formEntryValueVO.getValue();
        sum = sum + Float.valueOf(value);
      }
      catch (Exception e)
      {
        logger.warn("Not a valid number:" + e.getMessage());
View Full Code Here

              {
                String name = (String)formEntryValuesIterator.next();
                if(name != null && !name.equals(""))
                {
                  String value = (String)formEntryValues.get(name);
                  FormEntryValueVO formEntryValueVO = new FormEntryValueVO();
                  formEntryValueVO.setName(name);
                  formEntryValueVO.setValue(value);
                  formEntryValueVOList.add(formEntryValueVO);
                }
                else
                {
                  logger.warn("No name in variable - skipping");
View Full Code Here

TOP

Related Classes of org.infoglue.cms.entities.management.FormEntryValueVO

Copyright © 2018 www.massapicom. 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.