Meetloaf Posted December 15, 2006 Posted December 15, 2006 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
Steven H. Blackwell Posted December 15, 2006 Posted December 15, 2006 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
Genx Posted December 16, 2006 Posted December 16, 2006 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
Steven H. Blackwell Posted December 16, 2006 Posted December 16, 2006 Just a note related to error checking. A test for Get(FoundCount)=0 is a better test than Error 401. Steven
Meetloaf Posted December 28, 2006 Author Posted December 28, 2006 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!
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now