![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I would like to write a script where I click on a field and it goes to the third record after it. So for example, if I click on a field and it happens to contain 5, then it goes to record number 8. The catch is that in different parts I used different field names. So is it possible to refer to or evaluate the field in the script when the field is clicked on? Thus, I would not have to make separate scripts for each differently name field that perform the same function. |
#3
| |||
| |||
|
|
On 6/13/2005, pri wrote: I would like to write a script where I click on a field and it goes to the third record after it. So for example, if I click on a field and it happens to contain 5, then it goes to record number 8. The catch is that in different parts I used different field names. So is it possible to refer to or evaluate the field in the script when the field is clicked on? Thus, I would not have to make separate scripts for each differently name field that perform the same function. What version of FileMaker? In 6, look at the status functions, particularly Status ( CurrentFieldName ) and Status ( CurrentFieldContents ). In 7, they have become Get ( ActiveFieldName ) and Get ( ActiveFieldContents ). I'm not having much luck with it, though, because defining a field as a button apparently does not allow the field to become active, so the status thing becomes moot. I tried the invisible button thing, but that works only if the button is on top of the field and you specifically click it, not just click anywhere in the field. If you're in 7, take a look at EventScript, a free plugin from http://softs4humans.com. One of its functions triggers a script on entry to a field. |
![]() |
| Thread Tools | |
| Display Modes | |
| |