if(f.getFieldContentlet().startsWith("float")){
decimalFields.put(st.getVelocityVarName()+"."+f.getVelocityVarName(), f);
}
}
CategoryAPI catAPI = APILocator.getCategoryAPI();
Category category=null;
String categoriesvalues="";
boolean first = true;
for (String cat : categories) {
try {
category=catAPI.find(cat, currentUser, false);
} catch (DotDataException e) {
Logger.error(this, "Error trying to obtain the categories", e);
} catch (DotSecurityException e) {
Logger.error(this, " Permission error trying to obtain the categories", e);
}
if(!first){
categoriesvalues+=" ";
}
categoriesvalues+="categories:"+ category.getCategoryVelocityVarName();
first = false;
}
categoriesvalues = categoriesvalues.trim();
for (int i = 0; i < fields.size(); i = i + 2) {
String fieldName = (String) fields.get(i);