Peterh Posted January 21, 2002 Posted January 21, 2002 Hi, I am working on a solution to pull data out of our oracle database into FM v5.5. Pulling the data out of oracle isn't a problem, but I am not sure how to make the query I want dynamic. Here is a cut down version of the query: SELECT "ORDERS"."TRAN_ID" FROM "ORDERS" WHERE "ORDERS"."TRAN_ID" = '2118570' ORDER BY "ORDERS"."TRAN_ID" Instead of hardcoding '2118570' I would like to use a global FM field. It is possible to write something like "WHERE "ORDERS"."TRAN_ID" = "('FileMake file':'FileMaker field')? In summary, I want to query an oracle database from FM using a FM field as the variable. Is this possible? Thanks.
Vaughan Posted January 21, 2002 Posted January 21, 2002 A query can be stored in a field. Make a calculation field that generates the necessary text, and use lots of conditionals (If[], Case[] etc)to perform the necessary magic.
Peterh Posted January 21, 2002 Author Posted January 21, 2002 I've figured it out now. I hadn't thought too hard about how fields would work. Thanks.
cdenby Posted September 26, 2002 Posted September 26, 2002 Wait a sec - how do you actually get the query to be run in an import if it sits in a field??
Recommended Posts
This topic is 8094 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 accountSign in
Already have an account? Sign in here.
Sign In Now