Solved

script after putting text in field?

Posted on 2003-12-10
4
631 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 3

Accepted Solution

by:
Mariano_Peterson earned 100 total points
ID: 9914804
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
ID: 10173772
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
ID: 10176704
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
ID: 10554087
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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Filemaker 13 Export / Import Records 1 1,055
FM - Sorting Titles 5 74
Filemaker Server 14 Licensing : Concurrent connections at upgrade 4 227
Layout parts in FilemakerPro 10 17 53
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…
Having just upgraded from Filemaker 11 to Filemaker 12 over the weekend, we thought we would add some tips for others making the same move.  In general, our installation went without incident. Please note that this is not a replacement for Chapter 5…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

732 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