| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
| Feel free! The 'isot' is what comes back from the soap call to a Web Service developed using WebObjects which is wrapped around a MySQL database. The field in the database is defined as a datetime and the entity in the Enterprise Objects model as a NSCalendatDate. Applescript _was_ able to handle the value in this form using the coercion: set datestamp to datestamp as date after which it behaved like a normal AS date. My problem was how to generate a date which I could write back to the web service to set the date field in the database. I tried the earlier suggestion of using: (current date) as class «isot» and while this worked within the script I still got an error back from WebObjects. The solution/workaround I have used makes use of EOModeler's ability to change value classes internally so this entity is now defined as type NSString to the outside world but as a timestamp on the database side. In my script I now send the date formatted into a text string in the format yyyy-mm-dd and the interface is working fine. It's always nice to find a solution but that's a couple of hours of my life gone which I won't get back... Regards, Gordon. Gordon Maynard m: 07 970 638 415 e: email@hidden AIM: maynardaim On 13 Oct 2006, at 13:36, Mark J. Reed wrote:
|
_______________________________________________ Do not post admin requests to the list. They will be ignored. AppleScript-Users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/applescript-users/email@hidden This email sent to email@hidden
| References: | |
| >ISO date format on SOAP interface (From: Gordon Maynard <email@hidden>) | |
| >Re: ISO date format on SOAP interface (From: "Mark J. Reed" <email@hidden>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.