Script in Checkpoint

Post Reply
rhd_ole
Member
Posts: 154
Joined: Mon Jan 24, 2022 5:36 pm

Script in Checkpoint

Post 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.
Color Science & Workflow Automation
thelmaolmos
Newbie
Posts: 1
Joined: Mon Jan 19, 2026 9:48 am

Re: Script in Checkpoint

Post 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.
Post Reply