Gareth
03/23/2025, 9:56 AMRodney
03/24/2025, 7:58 PMimport SETTINGS;
component {
boolean function hasTest(required com.someCompany.SomeObject myObj) {
var tests = queryExecute(
"
SELECT testId
FROM Tests
WHERE userId = :userId AND testDate IS NOT NULL;
",
{ userId: { cfsqltype: "integer", value: myObject.getUserId() } }
);
return tests.recordCount;
}
}
Gareth
03/25/2025, 2:29 AMGareth
03/28/2025, 5:36 AMGareth
03/28/2025, 5:37 AMGareth
03/28/2025, 5:37 AM