Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 5886 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

This code (with the return replaces by println) works fine in Netbeans, but not when evaluated within Filemaker. I am loading the Oracle JDBC JARs (the Java 6 jar ojdbc6.jar and orai18n.jar) - which JDK does Scriptmaster use? Am I missing something obvious?

import groovy.sql.Sql;

import oracle.jdbc.OracleDriver;

def town = 'Birmingham';

def sql = Sql.newInstance("jdbc:oracle:thin:@192.168.1.192:1521:orcl", "username",

"password", "oracle.jdbc.OracleDriver");

firstRow = sql.firstRow("select * from customers where postaltown=${town} order by surname");

return "${firstRow.forename} ${firstRow.surname}");

This topic is 5886 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.