Newbies MichaelPhp Posted May 26, 2008 Newbies Posted May 26, 2008 Hi php developers, I hope you can save me from getting crazy: setting: FM-Server9adv, php-api php scipt creates a new record in a table/layout with several fields (about 100), but with some date fields it doesnt work! date1, date2, date3 works fine, like all other textfields, but with date4, date5, date6 it is not possible to write into. same definiton of the fields, no checks write the same date/string to all fields even duplicated working field with new name doesnt work this is not a spelling problem error message says: "field not found" it is not dependend of the position in the write cycle, when doing a commit after every ->setField data is written till the first 'bad' datefield it is not dependent of the date value the rest of the code is fine, writes a 30 fields to the table, hundrets of records Any ideas whats going wrong? thanks, michael
Genx Posted May 27, 2008 Posted May 27, 2008 (edited) Check for a duplicate layout name? Additionally, check that the user actually has permissions to edit that field. Edited May 27, 2008 by Guest
Baloo Posted May 27, 2008 Posted May 27, 2008 If date4, date5, and date6 are in a related table don't forget that the field name is actually "related_table::date4". I've made that mistake a few times along with only putting one : between related_table and field (that one took a few hours and a lot of swearing to find)
Newbies Michael00 Posted May 30, 2008 Newbies Posted May 30, 2008 YES!! It was related to a layout name error. Now it work fine. Thanks a lot for your help! Michael (saved from getting cracy ;-)
Recommended Posts
This topic is 6360 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