Home » Category » Database & Application Miscellaneous

Database & Application Miscellaneous: I have a simple problem - I would like to activate a script as soon as I change..

212| Sat, 17 May 2008 11:02:00 GMT| jokin| Comments (3)
Hi everybody. I have a simple problem (I hope). I would like to activate a script as soon as I change the record USING THE WHEEL in a mouse. For me it is essential to use the mouse (wheel) to go from one record to another one very quickly. When I change the record, the layaout contains a table with different labels and each records should show different especific labels depending on different values contained in the record. For example, the record 1 containing 'A' in the field named 'label' should show the values contained in the table-label A, the record 2 containing 'B' in the field named 'label' should show the values contained in the table-label B. When I use the wheel to move from the record 1 to 2, the table-label do not change according to the values in the record. I know that the zipscripts are very useful to activate scripts able to move the labels in a table (for example using 'go to object') but I do not know how to active a zipscript just by moving from one record to another. What I would not like is to touch any field or button, just move from one record to another and the change of the record should activate the script able to move the labels in the table. Is this possible?
Thanks, Jokin

Keywords & Tags: simple, activate, script, soon, change, database, application

URL: http://database.itags.org/database-application/158230/
 
«« Prev - Next »» 3 helpful answers below.
Well, by your description you probably could just use a calc field to
change what is displayed without bothering with the ZippScript plugin.

However, to use the plug-in just use the desired plug-in call within an
unstored calc field and place that field on your layout. Make it 1px by
1 px to "hide" it. Unstored calcs will re-evaluate themselves from
record to record, as they need to update their display, thus triggering
the plugin.

Jokin wrote:
> Hi everybody.
> I have a simple problem (I hope). I would like to activate a script as
> soon as I change the record USING THE WHEEL in a mouse. For me it is
> essential to use the mouse (wheel) to go from one record to another
> one very quickly. When I change the record, the layaout contains a
> table with different labels and each records should show different
> especific labels depending on different values contained in the
> record. For example, the record 1 containing 'A' in the field named
> 'label' should show the values contained in the table-label A, the
> record 2 containing 'B' in the field named 'label' should show the
> values contained in the table-label B. When I use the wheel to move
> from the record 1 to 2, the table-label do not change according to the
> values in the record. I know that the zipscripts are very useful to
> activate scripts able to move the labels in a table (for example using
> 'go to object') but I do not know how to active a zipscript just by
> moving from one record to another. What I would not like is to touch
> any field or button, just move from one record to another and the
> change of the record should activate the script able to move the
> labels in the table. Is this possible?
> Thanks,
> Jokin
>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~
Howard Schlossberg (818) 883-2846
FM Professional Solutions, Inc. Los Angeles

FileMaker 8 Certified Developer
Associate Member, FileMaker Solutions Alliance

howard_schlossberg | Sat, 17 May 2008 11:03:00 GMT |

On Apr 7, 8:19 am, "Jokin" <joaquin.casti......gmail.com> wrote:
> Hi everybody.
> I have a simple problem (I hope). I would like to activate a script as
> soon as I change the record USING THE WHEEL in a mouse. For me it is
> essential to use the mouse (wheel) to go from one record to another
> one very quickly. When I change the record, the layaout contains a
> table with different labels and each records should show different
> especific labels depending on different values contained in the
> record. For example, the record 1 containing 'A' in the field named
> 'label' should show the values contained in the table-label A, the
> record 2 containing 'B' in the field named 'label' should show the
> values contained in the table-label B. When I use the wheel to move
> from the record 1 to 2, the table-label do not change according to the
> values in the record. I know that the zipscripts are very useful to
> activate scripts able to move the labels in a table (for example using
> 'go to object') but I do not know how to active a zipscript just by
> moving from one record to another. What I would not like is to touch
> any field or button, just move from one record to another and the
> change of the record should activate the script able to move the
> labels in the table. Is this possible?
> Thanks,
> Jokin


Thanks Howard,
I made that calc field to be modified as soon as I change the record
but the problem now is that to associate the calc field to a
zippscript using the standard "Calculated value" in the Option for
field, the calc field does not have that option and I cannot associate
any zippscript to the calc field.
Thanks,
Jokin

jokin | Sat, 17 May 2008 11:04:00 GMT |

"Jokin" <joaquin.castilla...gmail.com> schreef in bericht
news:1176121105.012232.182410...p77g2000hsh.googlegroups.com...
> On Apr 7, 8:19 am, "Jokin" <joaquin.casti......gmail.com> wrote:
> Thanks Howard,
> I made that calc field to be modified as soon as I change the record
> but the problem now is that to associate the calc field to a
> zippscript using the standard "Calculated value" in the Option for
> field, the calc field does not have that option and I cannot associate
> any zippscript to the calc field.
> Thanks,
> Jokin
>


I have run into the same problem and created a new calcfield that contains
the trigger. I used the EventScript, but changing this to Zippscript should
be no great task.
Say your first calc field is called cMyCalc
Then create a cTrigger < Number;

LET ( [ a = cMyCalc ] ;
S4HU_EventScript( Get ( FileName ); "MyScipt" ; "MyOption")
)

Let this be unstored and it might do what you want. The a=cMyCalc will
evaluate everytime cMyCalc changes, but since it isn't used anywhere it will
simply act as a trigger for the plug-in to fire.

Keep well, Ursus

ursus | Sat, 17 May 2008 11:05:00 GMT |

Database & Application Miscellaneous Hot Answers

Database & Application Miscellaneous New questions

Database & Application Miscellaneous Related Categories