Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

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

Recommended Posts

Posted

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

Posted

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

Posted

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

  • 2 weeks later...
Posted

Just an update for those that have helped out. I had the IT guys upgrade FM Server to Version 8, and the script began working as desired. Thanks for your help, I think I will clean my script up while I'm at it! Thanks!

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