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.

Inserting data in WEB problem

Featured Replies

  • Newbies

I'm creating DB with help of FMPro6... for now everything seems to be ok except one point: I publish DB on the web, so some people can edit it. For creating new record I'm using simple script like this:

script NewRecord


 New Record/Request

 Set Field ("Date","Today")

In FileMaker it works perfectly, but when I'm trying to do through the browser, in new created record no data is pasted at all frown.gif .

What can be the reason?

Thank you!

Hi, V! I'm not sure I understand entirely so please forgive me if it sounds silly, but I'm wondering if maybe in FMP, you are creating the record by executing the script, while in the web, you are creating the record with NEW RECORD? If so, the script does not execute at all so the SET FIELD is not performed. On the web, you would have to have the script execute in order to get your desired results... but I do not recomend you use a script to create a new record via the web, anyway, though. IMO, you should avoid using scripts over the web in FM4-6.

Try to use FM built-in functions and calculation fields to do what you want, e.g. define field "Date" to auto-enter Creation Date. I know you were just testing, but try to avoid scripts for web use unless you are prepared to spend a lot time to get them to work consistently.

--ST

  • Author
  • Newbies

Ok, thanks, I'll try...

just at the end of yesterday's day smile.gif I've read, that FM (at least ver. 6) restricts number of script steps and script commands available when publishing on web frown.gif

Anyway, thanks for advice!

Use Status(CurrentDate) instead of the Today function.

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

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.