Skip to content

Accessing the database as a transform step with variables #6234

Closed Answered by pacmano1
dmyers-afk asked this question in Q&A
Discussion options

You must be logged in to vote

Please use proper code blocks and code formatting when you post here. Your code and error blocks above should look like the below. Please see https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/creating-and-highlighting-code-blocks.

The answer to your question is on the bottom of my response.

try {
    dbConn = DatabaseConnectionFactory.createDatabaseConnection('com.mysql.cj.jdbc.Driver', 'jdbc:mysql://:/jivex', 'user', 'pwd');
    var strSQL = "SELECT * FROM jivehl7worklistentry where accessionNumber = '" + $('AccessionNumber') + "'";
    var result = dbConn.executeCachedQuery(strSQL);
// You may access this result below with $('column_name')

// Rep…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by dmyers-afk
Comment options

You must be logged in to vote
1 reply
@pacmano1
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants