Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

error 'field not found' with date field

Featured Replies

  • Newbies

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

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

Edited by Guest

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

YES!!

It was related to a layout name error.

Now it work fine.

Thanks a lot for your help!

Michael

(saved from getting cracy ;-)

Create an account or sign in to comment

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.