Title
Need help for Global Field
Post
I am using Filemaker pro 11 advance New in scripting I am using my global field to find records in my database, If I enter manually any student number in my global field it works fine. Any record/s will find and enter the system time in the portal field (TimeIn and Timeout field). My problem is when I tried to add the script to clear my global field and pause and wait to enter any student number and then find the record at the same time record the system time in the portal field and it doesn’t work, my global (gStudentNumber) doesn’t work and it stock, I can’t enter any number on that field. It is possible to use this field or what is the code for this? I have two tables: Student and AccessLog table Relationships Student::LogID=AccessLog::LogID This is the script. Go to Field [Student::gStudentNumber] Pause/Resume Script [Duration (seconds): 2] Go to Layout [“AccessLog” (AccessLog)] Enter Find Mode [Pause] Thanks in advance for any help xtremu
What mode are you in when you pause the script for student input? To edit the contents of a global field, you must be in browse mode so if your script enters find mode and then pauses, this won't work.
generally speaking, when using a global fields to capture the search criteria for this kind of script, there is no need to pause the script. Simply present the user with the layout of global fields in browse mode and include a button or script trigger to perform the script when they have finished entering criteria the in the global field or fields. The script can take it from there without any pauses.
If you do want to pause the script (I do that when I have the search fields in a small floatint window as a way to keep the window in front), use Pause/Resume Script, not Enter Find Mode [pause].