dbTalk Databases Forums  

insert filemaker date into mysql

comp.databases.filemaker comp.databases.filemaker


Discuss insert filemaker date into mysql in the comp.databases.filemaker forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Darren Burgess
 
Posts: n/a

Default insert filemaker date into mysql - 06-09-2010 , 08:02 PM






I am attempting to insert from filemaker a date into a mySQL date
field. mySQL dates are configured as yyyy-mm-dd.

I am using this calc to convert the date:
Year ( Workshop::Start Date ) & SerialIncrement ( "-00" ; Month
( Workshop::Start Date ) ) & SerialIncrement ( "-00" ; Day
( Workshop::Start Date ) )

This will correctly convert the date, however the script generates a
500 error - Date value does not meet validation entry options.

The filemaker field is a date field. the mySQL field is also type
date.

Any ideas

Darren Burgess

Reply With Quote
  #2  
Old   
Your Name
 
Posts: n/a

Default Re: insert filemaker date into mysql - 06-09-2010 , 08:27 PM






In article
<b2a81186-816d-4df5-993d-6757b51d7e98 (AT) k39g2000yqd (DOT) googlegroups.com>,
Darren Burgess <darrenburgess (AT) cox (DOT) net> wrote:

Quote:
I am attempting to insert from filemaker a date into a mySQL date
field. mySQL dates are configured as yyyy-mm-dd.

I am using this calc to convert the date:
Year ( Workshop::Start Date ) & SerialIncrement ( "-00" ; Month
( Workshop::Start Date ) ) & SerialIncrement ( "-00" ; Day
( Workshop::Start Date ) )

This will correctly convert the date, however the script generates a
500 error - Date value does not meet validation entry options.

The filemaker field is a date field. the mySQL field is also type
date.

Any ideas
A field set to yyyy-mm-dd is not a valid FileMaker date. If you want a
date in that format you would usually just change the formatting options
for the Field on the Layout(s).

BUT, since you're transferring to an SQL database that isn't going to
work. What you'll need to do is use a Text Field in FileMaker for the
converted date, and then perhaps have an extra Field in the SQL data base
that converts the imported FileMaker Text date into a proper Date.

Helpfull Harry )

Reply With Quote
  #3  
Old   
Howard Schlossberg
 
Posts: n/a

Default Re: insert filemaker date into mysql - 06-09-2010 , 10:49 PM



On 6/9/2010 6:02 PM, Darren Burgess wrote:
Quote:
I am attempting to insert from filemaker a date into a mySQL date
field. mySQL dates are configured as yyyy-mm-dd.

I am using this calc to convert the date:
Year ( Workshop::Start Date )& SerialIncrement ( "-00" ; Month
( Workshop::Start Date ) )& SerialIncrement ( "-00" ; Day
( Workshop::Start Date ) )

This will correctly convert the date, however the script generates a
500 error - Date value does not meet validation entry options.

The filemaker field is a date field. the mySQL field is also type
date.

What method are you using to move it to SQL? If you are using FM's
built-in ESS (external SQL sources) feature, then you just set the date
into the SQL field in FileMaker in the regular FM format (MM/DD/YYYY)
and FM takes care of the conversion to MySQL date format.

Reply With Quote
  #4  
Old   
Darren Burgess
 
Posts: n/a

Default Re: insert filemaker date into mysql - 06-11-2010 , 05:56 AM



Thank you, this worked. BTW the method to insert was the set field
script step.

What other conversions does filemaker make automatically? where is
the documentation regarding this?

Quote:
What method are you using to move it to SQL? *If you are using FM's
built-in ESS (external SQL sources) feature, then you just set the date
into the SQL field in FileMaker in the regular FM format (MM/DD/YYYY)
and FM takes care of the conversion to MySQL date format.

Reply With Quote
  #5  
Old   
Howard Schlossberg
 
Posts: n/a

Default Re: insert filemaker date into mysql - 06-11-2010 , 11:54 AM



On 6/11/2010 3:56 AM, Darren Burgess wrote:
Quote:
What other conversions does filemaker make automatically? where is
the documentation regarding this?
There's chapter five of the FM users' guide:
http://www.filemaker.com/support/pro...sers_guide.pdf

And also the DBA guide, "The External SQL Data Source
Feature in FileMaker Pro"
http://www.filemaker.com/downloads/pdf/sql_info_dba.pdf

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Howard Schlossberg
FM Professional Solutions, Inc. Los Angeles

FileMaker Certified Developer
Associate Member, FileMaker Business Alliance

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.