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

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

Recommended Posts

  • Newbies
Posted

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!

Posted

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

  • Newbies
Posted

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!

Posted

Use Status(CurrentDate) instead of the Today function.

This topic is 7499 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.