ODBC Import Help

General support questions.
Posts: 2
Joined: Tue Nov 09, 2004 9:02 pm
PostPosted: Tue Nov 09, 2004 9:12 pm
I'd like to set something up where a user enters an invoice number in a field called 'invoice_no' on a filemaker table called invoices.

when they click a button (or even better...tab to the next cell) it goes out and grabs all the invoice information from an ODBC datasource (Sybase in this case) and imports it into the current record

I'm not sure how to say in the SQL statement

select * from invoices where invoice_no= ***insert the fm field here***

can anyone point me in the right direction pls.

Thanks
SeedCode Staff
SeedCode Staff
Posts: 2764
Joined: Thu Nov 20, 2003 11:01 am
PostPosted: Wed Nov 10, 2004 4:21 am
Note. This topic was move to General Support from our Custom Functions forum.

To get information "IN" to FileMaker, you'll use the Import command, selecting File / Import Records / ODBC Data Source...

In that import dialog you'll specify the data source and then be presented with a query builder where you can select the fields you'd like to import and build the SQL string you mentioned.

You're then presented with a standard FileMaker import dialog with your FileMaker fields on the right and your SQL data on the left. If you wish to create new records in FileMaker, you're all set: just line up the fields. If you'd like to update an existing record in FileMaker (for instance updating a FileMaker invoice with it's payment status) you'd use the "Update Matching Records in the Found Set" option, lining up at least one pair of SQL and FileMaker fields as match-fields to that FileMaker knows which record to update with which SQL data.

Hope that helps.
John Sindelar
SeedCode
Posts: 2
Joined: Tue Nov 09, 2004 9:02 pm
PostPosted: Wed Nov 10, 2004 7:04 am
Thanks John.

I'd like to automate it so the users don't have to make any entries other than the invoice number..

for example...

they enter the invoice no 12345 in filemaker...press a button... that goes and grabs the related information from sybase and pastes into pre-mapped cells in fm.

should i be using a calculated SQL statement?
SeedCode Staff
SeedCode Staff
Posts: 2764
Joined: Thu Nov 20, 2003 11:01 am
PostPosted: Wed Nov 10, 2004 8:39 am
kellydigital wrote:Thanks John.

I'd like to automate it so the users don't have to make any entries other than the invoice number..


Of course. You can script the import I just described using the import records script step.
John Sindelar
SeedCode

Return to General Support

Who is online

Users browsing this forum: Google [Bot] and 4 guests

(855) SEEDCODE
[email protected]
Follow us: