Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 6013 days old. Please don't post here. Open a new topic instead.

Recommended Posts

  • Newbies
Posted

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

Posted (edited)

Check for a duplicate layout name? Additionally, check that the user actually has permissions to edit that field.

Edited by Guest
Posted

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
Posted

YES!!

It was related to a layout name error.

Now it work fine.

Thanks a lot for your help!

Michael

(saved from getting cracy ;-)

This topic is 6013 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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.