Solved

script after putting text in field?

Posted on 2003-12-10
4
626 Views
Last Modified: 2010-04-27
Is it possible to get a script going after you have put something in a field and you go to the next field...?
0
Comment
Question by:Ducolo
  • 2
4 Comments
 
LVL 3

Accepted Solution

by:
Mariano_Peterson earned 100 total points
Comment Utility
Yes - there are two ways to do this.  The first method only works if you are using a field that is formatted as a pop-up menu.  Here are the steps:
1.  Put the field on the layout
2.  Format the field to use a value list, and display as a "pop-up menu" (very important).
3.  Format the field to not allow entry into the field (very important)
4.  Remove the field from the tab order (very important)
5.  Format the field as a button which launches your script.

Your script must look like:
   Go to field [your field]
   Pause/Resume Script["0:00:00"]
   Go to Next Field   (very important)
   Perform Script [Sub-scripts, "your_other_script"]

The second way to do this requires an events plug-in, but removes the restriction that the field be formatted as a pop-up menu.  A popular plug-in for this purpose is the Events plug-in from Waves in Motion (http://www.wmotion.com/events.html).  Their plug-in has a downloadable demo with example code on how to do this.
0
 

Author Comment

by:Ducolo
Comment Utility
I tried the 1st method, but doesn't seem to work. Because this:

5.  Format the field as a button which launches your script

I cannot change the text of the field... What did I do wrong?



0
 
LVL 3

Expert Comment

by:Mariano_Peterson
Comment Utility
You should be able to change the text of the field, however, you will only be able to select text from the value list.  You will not be able to freely enter what ever text you want.

To be able to enter any text like normal and still have the script trigger, you must use a plug-in (like the one mentioned above).

Another way to do this is to allow the user to enter data into a global field, then click a button that moves that data into the regular text field and performs whatever script you like at the same time.  Because this requires the user to use both the keyboard and the mouse to enter data, this will slow down data entry and be ackward for the end users.  In your situation, assuming you must be able to freely enter any text you want and not be limited to a value list, I recommend using the plug-in.
0
 
LVL 28

Expert Comment

by:lesouef
Comment Utility
Mariano,
I had noted this interesting trick (w/o plug-in); I found it works even if the field is enabled for entry, and also if it is in the tab order, but only on PC.
This all collapses on mac, as popup behaviour is different: on a PC, if the 1st activated field in a script is a popup, FM opens it automatically while on mac, it does not, therefore you've got no chance to change the content of the popup field.
One of the rare GUI differences between mac and pc...
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Conversion Steps for merging and consolidating separate Filemaker files The following is a step-by-step guide for the process of consolidating two or more FileMaker files (version 7 and later) into a single file with multiple tables. Sometimes th…
Problem: You have a hosted FileMaker database and users are tired of having to use Open Remote or Open Recent to access the database. They say, "can't you just give us something to double-click on rather than have to go through those dialogs?" An…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now