--
You received this message because you are subscribed to the Google Groups "Taffy Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to taffy-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Adam
To unsubscribe from this group and stop receiving emails from it, send an email to taffy-users...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to taffy-users+unsubscribe@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to taffy-users+unsubscribe@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to taffy-users+unsubscribe@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Taffy Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to taffy-users+unsubscribe@googlegroups.com.
var validFor = (validfor!=""?validfor:"");
var sql = "select distinct t1.orpodid, t1.orpodposition, t1.orpodname
from podsettings t1
left join roomsettings t2
on t1.orpodid=t2.orpodid
where (t1.activeae = :activeae or t2.activene = :activene)
and t1.location=:location
and t2.validfor=:validfor
order by t1.orpodposition ASC, t1.orpodname ASC";
var queryResults = queryExecute(sql, {activeae={value = true, cfsqltype="CF_SQL_BOOLEAN"},
activene={value = true, cfsqltype="CF_SQL_BOOLEAN"},
validfor={value = validfor, cfsqltype="CF_SQL_VARCHAR"},
location={value = location, cfsqltype="CF_SQL_VARCHAR"}}, {datasource="db_name_blah"});
queryResults = queryToArray(queryResults);
for (var a=1; a<=arrayLen(queryResults); a++){
var orpodid = queryResults[a].orpodid;
(additional sql statement based on above results)
roomsettings = queryToArray(roomsettings);
queryResults[a]["roomsettings"] = roomsettings;
}
return representationOf(queryResults).withStatus(200);
Post the SQL?
To unsubscribe from this group and stop receiving emails from it, send an email to taffy-users...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to taffy-users+unsubscribe@googlegroups.com.