Page 1 of 1

Script in Checkpoint

Posted: Thu Sep 05, 2024 5:27 pm
by rhd_ole
Hi All,

I curious if it's possible to pass a swtich variable as you normally would in javascript but use in a database query within the script.

For example, Privatedata of "job_number"

And then pass that into the query within the javascript.. So far I haven't been able to do that. I'm using to to pull more info about the job from our MIS based on the job number.

Re: Script in Checkpoint

Posted: Tue Jan 20, 2026 10:40 am
by thelmaolmos
Yes, it is possible, but how you do it depends entirely on where your JavaScript is running. The key rule is:
  • JavaScript in the browser cannot talk directly to a database.
  • JavaScript on the server (Node.js) can.