Jump to content

FMP v8 Scripts running in FMS 5


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

Recommended Posts

We recently placed one of the files we're working on, onto FMS 5, and the scripts don't seem to be working appropriately, 2 of them specifically. These are meant to be accessed online via the Instant Web Publishing interface. In general these scripts retrieve files by pausing, allowing for data entry into a field and then clicking a button to resume the script. For some reason, the scripts seem to stop after they pause. Any ideas?

Whenever we serve up the file via FMP 8 advanced via the IWP the scripts work perfectly fine, so I am convinced that all the steps are web-compatible. Are there certain script steps or actions we need to be aware of that behave differently when the file is served up on FMS?

Thanks!

P.S. Error capture is set to ON, if that makes a difference

P.P.S Here's the startup script:

If [ Get ( AccountName )= "mseacct" ]

Else

Set Error Capture [ On ]

Show/Hide Status Area[ Lock; Hide ]

Go to Layout [ “ONLINE - Apllication Welcome” (Applicants) ]

Enter Find Mode [ ] [ Pause ]

Set Variable [ $StudentID; Value:Applicants::BYU ID# ]

Perform Find [ ]

If [ Get ( LastError ) = 401 ]

New Record/Request

Go to Layout [ “ONLINE - Personal Information” (Applicants) ]

Set Field [ Applicants::BYU ID#; $StudentID ]

Else

Go to Layout [ “ONLINE - Personal Information” (Applicants) ]

End If

End If

Link to comment
Share on other sites

Are there certain script steps or actions we need to be aware of that behave differently when the file is served up on FMS?

Yes, and the script you provided seems to be malformed. Check your If/IfElse construct. Also youmay not be able to have something in find mode paused while users enter data. They may need to enter first into a global field and then do a find.

Did you really mean FileMaker Server 5?

Steven

Link to comment
Share on other sites

Should be:

If [ Get ( AccountName )<> "mseacct" ]

..Set Error Capture [ On ]

..Show/Hide Status Area[ Lock; Hide ]

..Go to Layout [ “ONLINE - Apllication Welcome” (Applicants) ]

..Enter Find Mode [ ]

..Set Variable [ $StudentID; Value:Applicants::BYU ID# ]

..Perform Find [ ]

..If [ Get ( LastError ) = 401 ]

....New Record/Request

....Go to Layout [ “ONLINE - Personal Information” (Applicants) ]

....Set Field [ Applicants::BYU ID#; $StudentID ]

..Else

....Go to Layout [ “ONLINE - Personal Information” (Applicants) ]

..End If

End If

Link to comment
Share on other sites

  • 2 weeks later...

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