dbTalk Databases Forums  

Zipscript

comp.databases.filemaker comp.databases.filemaker


Discuss Zipscript in the comp.databases.filemaker forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Jokin
 
Posts: n/a

Default Zipscript - 04-07-2007 , 07:19 AM






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


Reply With Quote
  #2  
Old   
Howard Schlossberg
 
Posts: n/a

Default Re: Zipscript - 04-07-2007 , 09:50 AM






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:
Quote:
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


Reply With Quote
  #3  
Old   
Jokin
 
Posts: n/a

Default Re: Zipscript - 04-09-2007 , 07:18 AM



On Apr 7, 8:19 am, "Jokin" <joaquin.casti... (AT) gmail (DOT) com> wrote:
Quote:
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



Reply With Quote
  #4  
Old   
Ursus
 
Posts: n/a

Default Re: Zipscript - 04-09-2007 , 10:16 AM




"Jokin" <joaquin.castilla (AT) gmail (DOT) com> schreef in bericht
news:1176121105.012232.182410 (AT) p77g2000hsh (DOT) googlegroups.com...
Quote:
On Apr 7, 8:19 am, "Jokin" <joaquin.casti... (AT) gmail (DOT) 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

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




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.