valori := make(map[string]interface{})
regole := make(map[string]interface{})
for _, elem := range elems {
- /*if elem.Name == "IDAssociazioni" {
- i, _ := strconv.Atoi(r.FormValue(elem.Name))
- valori[elem.Name] = i
- } else {*/
if elem.Filter != "" {
splitted := strings.Split(elem.Filter, ",")
for _, f := range splitted {
v, _ := strconv.ParseFloat(str, 64)
if elem.DBType == "int" || strings.Contains(elem.Validation, "numeric_it=int") {
campi[elem.DBName] = int(v)
+ } else {
+ campi[elem.DBName] = v
}
} else if strings.Contains(elem.Validation, "mydate") {
/* metto la data in formato sql */