From b74506f68996717e6110b2c61ea6633275212146 Mon Sep 17 00:00:00 2001 From: labkey-nicka Date: Thu, 16 Apr 2026 12:08:54 -0700 Subject: [PATCH] Opt out of managedColumns --- laboratory/resources/queries/laboratory/dna_oligos.js | 5 ++++- laboratory/resources/queries/laboratory/peptides.js | 5 +++++ laboratory/resources/queries/laboratory/samples.js | 5 +++++ 3 files changed, 14 insertions(+), 1 deletion(-) diff --git a/laboratory/resources/queries/laboratory/dna_oligos.js b/laboratory/resources/queries/laboratory/dna_oligos.js index 90080c4d..7dff98b9 100644 --- a/laboratory/resources/queries/laboratory/dna_oligos.js +++ b/laboratory/resources/queries/laboratory/dna_oligos.js @@ -9,7 +9,10 @@ var console = require("console"); console.log("** evaluating: " + this['javax.script.filename']); - +// Opt out of manage columns feature for all EHR triggers +function managedColumns() { + return false; +} function beforeBoth(row, errors) { if(row.sequence){ diff --git a/laboratory/resources/queries/laboratory/peptides.js b/laboratory/resources/queries/laboratory/peptides.js index ecb06263..5b15262f 100644 --- a/laboratory/resources/queries/laboratory/peptides.js +++ b/laboratory/resources/queries/laboratory/peptides.js @@ -8,6 +8,11 @@ var console = require("console"); console.log("** evaluating: " + this['javax.script.filename']); +// Opt out of manage columns feature for all EHR triggers +function managedColumns() { + return false; +} + function beforeInsert(row, errors) { beforeBoth(row, errors); diff --git a/laboratory/resources/queries/laboratory/samples.js b/laboratory/resources/queries/laboratory/samples.js index 39055068..83a5274c 100644 --- a/laboratory/resources/queries/laboratory/samples.js +++ b/laboratory/resources/queries/laboratory/samples.js @@ -14,6 +14,11 @@ var freezerHelper = org.labkey.laboratory.query.FreezerTriggerHelper.create(LABK console.log("** evaluating: " + this['javax.script.filename']); +// Opt out of manage columns feature for all EHR triggers +function managedColumns() { + return false; +} + function beforeInsert(row, errors){ beforeUpsert(row, errors); }