dbTalk Databases Forums  

Change to field contents triggers script

comp.databases.filemaker comp.databases.filemaker


Discuss Change to field contents triggers script in the comp.databases.filemaker forum.



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

Default Change to field contents triggers script - 10-20-2005 , 11:41 AM






With help from Howard Schlossberg (Copy/paste two find parameters,
10/19/05), I was able to complete a script that updates the Balance
Forward field in my accounting database.

Now I'd like to trigger the script whenever the contents of a specific
field change. For example, if the companyID is changed, the script
returns the correct Balance Forward for the new company. If the month is
changed, the script returns the correct Balance Forward for the new month.

Both the companyID and the month are pop-ups, using value lists.

The user could launch the script by clicking a button -- "Refresh
Balance Forward" -- but is there any way to trigger it without any
additional user input? I think I'm looking for an onChange event
handler, but I can't find one.

Thanks.

Reply With Quote
  #2  
Old   
Matt Wills
 
Posts: n/a

Default Re: Change to field contents triggers script - 10-20-2005 , 11:45 AM






Dave McCullough wrote on (10/20/2005):

Quote:
With help from Howard Schlossberg (Copy/paste two find parameters,
10/19/05), I was able to complete a script that updates the Balance
Forward field in my accounting database.

Now I'd like to trigger the script whenever the contents of a specific
field change. For example, if the companyID is changed, the script returns
the correct Balance Forward for the new company. If the month is changed,
the script returns the correct Balance Forward for the new month.

Both the companyID and the month are pop-ups, using value lists.

The user could launch the script by clicking a button -- "Refresh Balance
Forward" -- but is there any way to trigger it without any additional user
input? I think I'm looking for an onChange event handler, but I can't find
one.

Thanks.
Assuming you're in 7/8, EventScript (FREE plugin) from
http://www.softs4humans.com will do it nicely.

Seems to me I heard of one somebody put together for 6, but I don't
remember the name.

Matt


Reply With Quote
  #3  
Old   
Dave McCullough
 
Posts: n/a

Default Re: Change to field contents triggers script - 10-20-2005 , 02:39 PM



Matt Wills wrote:
Quote:
Dave McCullough wrote on (10/20/2005):

With help from Howard Schlossberg (Copy/paste two find parameters,
10/19/05), I was able to complete a script that updates the Balance
Forward field in my accounting database.

Now I'd like to trigger the script whenever the contents of a specific
field change. For example, if the companyID is changed, the script
returns the correct Balance Forward for the new company. If the month
is changed, the script returns the correct Balance Forward for the new
month.

Both the companyID and the month are pop-ups, using value lists.

The user could launch the script by clicking a button -- "Refresh
Balance Forward" -- but is there any way to trigger it without any
additional user input? I think I'm looking for an onChange event
handler, but I can't find one.

Thanks.

Assuming you're in 7/8, EventScript (FREE plugin) from
http://www.softs4humans.com will do it nicely.

Seems to me I heard of one somebody put together for 6, but I don't
remember the name.

Matt
EventScript provides exactly the functionality I was looking for.

If you decide to use it, you should know that the faq's on the web site
provide relatively simple examples, one of which worked perfectly for
me. The sample file provided by the developer is much more complex --
well beyond my comprehension.

Thanks for steering me towards this solution.


Reply With Quote
  #4  
Old   
fm-training
 
Posts: n/a

Default Re: Change to field contents triggers script - 10-20-2005 , 03:48 PM



Troi activator plugin does this too...


Reply With Quote
  #5  
Old   
Remi-Noel Menegaux
 
Posts: n/a

Default Re: Change to field contents triggers script - 10-20-2005 , 04:51 PM



and so does also the oAzium Events plugin.
Remi-Noel


"fm-training" <googlegroups (AT) fm-training (DOT) co.uk> a écrit : ...
Quote:
Troi activator plugin does this too...




Reply With Quote
  #6  
Old   
Matt Wills
 
Posts: n/a

Default Re: Change to field contents triggers script - 10-20-2005 , 04:59 PM



Dave McCullough wrote on (10/20/2005):

Quote:
Matt Wills wrote:
Dave McCullough wrote on (10/20/2005):

With help from Howard Schlossberg (Copy/paste two find parameters,
10/19/05), I was able to complete a script that updates the Balance
Forward field in my accounting database.

Now I'd like to trigger the script whenever the contents of a specific
field change. For example, if the companyID is changed, the script
returns the correct Balance Forward for the new company. If the month is
changed, the script returns the correct Balance Forward for the new
month.

Both the companyID and the month are pop-ups, using value lists.

The user could launch the script by clicking a button -- "Refresh Balance
Forward" -- but is there any way to trigger it without any additional
user input? I think I'm looking for an onChange event handler, but I
can't find one.

Thanks.

Assuming you're in 7/8, EventScript (FREE plugin) from
http://www.softs4humans.com will do it nicely.

Seems to me I heard of one somebody put together for 6, but I don't
remember the name.

Matt

EventScript provides exactly the functionality I was looking for.

If you decide to use it, you should know that the faq's on the web site
provide relatively simple examples, one of which worked perfectly for me.
The sample file provided by the developer is much more complex -- well
beyond my comprehension.

Thanks for steering me towards this solution.
No prob.

I've incorporated ES pretty heavily into a sales leads / client tracking
solution I've built for myself and colleagues. I use it for triggering
windows opening on creation of an order, menus from dropdowns and popups,
all sorts of stuff.

One thing to be aware of if you're in FM8:

Don't put both an EventScript trigger and a mouseover ToolTip on the same
field. Gaston (the developer) told me he had discovered that the tooltip
apparently gets interpreted as a change to the field, and the trigger fires.

You might be able to build a trap into a script to work around that
behavior, but otherwise it looks dangerous, triggering scripts by mousing
around on a layout. Might be useful for a game, though.

Matt


Reply With Quote
  #7  
Old   
Matt Wills
 
Posts: n/a

Default Re: Change to field contents triggers script - 10-20-2005 , 05:11 PM



fm-training wrote on (10/20/2005):

Quote:
Troi activator plugin does this too...
and

Remi-Noel Menegaux wrote on (10/20/2005):

Quote:
and so does also the oAzium Events plugin.

I have no experience with oAzium Events, but Activator is cool, sending
signals to and executing scripts in FM files on the other side of the
planet.

They could both probably handle Dave's requirement, but all other
considerations being equaL, why would you pay for either, if the job can
be done quite well for free?

Matt


Reply With Quote
  #8  
Old   
Bill Marriott
 
Posts: n/a

Default Re: Change to field contents triggers script - 10-20-2005 , 06:02 PM



And we all prefer to pay (oAzium = $129; Troi = $89) when there's a free
solution available.

Bill

"Remi-Noel Menegaux" <rnmenegaux (AT) free (DOT) fr> wrote

Quote:
and so does also the oAzium Events plugin.
Remi-Noel

"fm-training" <googlegroups (AT) fm-training (DOT) co.uk> a écrit : ...
Troi activator plugin does this too...



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.