Jump to content

Web Scripting


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

Recommended Posts

  • Newbies

OK, so I have a script that runs perfectly on FMPro 4, but the deal is, I need to run it from the Web. Specificly, I want to have a button on my web page that performs the script in FM. Is it possible to do this? I've tried to do it by specifying a field button and connecting it through Claris Homepage, but it doesn`t work. How can I do this using Claris Homepage or another way. Thanks!

Link to comment
Share on other sites

Yak, scripts on web. OK I am warning you, you will get what you are asking for.

You do not need scripts. I wrote several FM web applications and I do not need single script for any functionality.

If Unlimited is processing requests from Web, you will see all requests on the screen, like from invisible operator.

Now, if you want to work in the same moment with different requests what will happen?

Now, web will trigger script with response time of 30seconds. What you can do with another web request? Or console request?

Single thread is single thread. Queue of requests...

Scripts will be always only partially successful.

Example: to put current date in global field it will work all the time.

To find records by script and display them through HTML -- no way.

It may look it is working. But if first request (1) from user A will run the script, and another request from user B (2) will make different found set of records, then the machine will not display correct set of records to user A (3).

You cannot assume, that FM somehow will process the requests in 1-3-2 sequence.

**************************

What it does

Specifies the FileMaker Pro script that should be performed after the finding and sorting of records (if any) during processing of the action.

Value is

Name of the script to perform.

Syntax example(s)

Perform a script using a link

<a href="FMPro?-DB=db.fp5&-Format=rslt.htm&-Script=Omit+Script&-FindAll">"Run script"</a>

Perform a script using a form action

<form action="FMPro" method="post">

< input type="hidden" name="-DB" value="names.fp5">

< input type="hidden" name="-Format" value="results.htm">

< input type="hidden" name="-Script" value="Omit Script">

< input type="submit" name="-FindAll" value="Run Script">

</form>

Other tags that are required

-DB, any action tag

See also

-Script.PreFind, -Script.PreSort

PS. Dischage the space after <

Link to comment
Share on other sites

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