dbTalk Databases Forums  

Trigger script when value changes

comp.databases.filemaker comp.databases.filemaker


Discuss Trigger script when value changes in the comp.databases.filemaker forum.



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

Default Trigger script when value changes - 11-13-2006 , 12:55 AM






I have a pop-up field, and I want to trigger a script automatically when the
value has been selected; otherwise the user must click a button to take the
action. If I set the field's button action it prevents the popup from
showing.

Is there a way to do this?

Don



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

Default Re: Trigger script when value changes - 11-13-2006 , 04:03 AM






Don,

you don't state version or platform so my answer is a bit vague.

You need a plug in. Look at

Callscript at costello_ryan.tripod.com
EventScript by Softs4Humans
zippScript of www.nightwing.com.au

Ursus

"Don" <reply.to.group (AT) saynotospam (DOT) com> schreef in bericht
news:Y9CdnVXka8LEisXYnZ2dnUVZ_omdnZ2d (AT) comcast (DOT) com...
Quote:
I have a pop-up field, and I want to trigger a script automatically when
the value has been selected; otherwise the user must click a button to take
the action. If I set the field's button action it prevents the popup from
showing.

Is there a way to do this?

Don




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

Default Re: Trigger script when value changes - 11-13-2006 , 11:08 AM



I realize I need a plugin like EventScript myself, but I've never
integrated a plugin into a solution. It's hosted on a server with 9
separate users. Do I need to install the plugin on the server and all
9 nine clients? Do plugins work with IWP?

Thanks,
G


Ursus wrote:
Quote:
Don,

you don't state version or platform so my answer is a bit vague.

You need a plug in. Look at

Callscript at costello_ryan.tripod.com
EventScript by Softs4Humans
zippScript of www.nightwing.com.au

Ursus

"Don" <reply.to.group (AT) saynotospam (DOT) com> schreef in bericht
news:Y9CdnVXka8LEisXYnZ2dnUVZ_omdnZ2d (AT) comcast (DOT) com...
I have a pop-up field, and I want to trigger a script automatically when
the value has been selected; otherwise the user must click a button to take
the action. If I set the field's button action it prevents the popup from
showing.

Is there a way to do this?

Don



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

Default Re: Trigger script when value changes - 11-13-2006 , 02:29 PM



Because I had never heard of CallScript, I checked out
costello_ryan.tripod.com. Their FileMaker stuff has been moved to
http://www.rnssoftware.com/downloads.php and there is no mention of
CallScript. In fact, he recommends EventScript. That Reverse Lookup
thing looks interesting, though.

EventScript is at http://www.softs4humans.com. I also have a demo file
at http://www.virtualvermont.com/FMP, which includes the latest versions
of both Mac and Windows plugs).

Ray Cologon does provide a download of zippScript, as he uses it in
several of his demos. You can also get it directly from John Kornhaus
at http://homepage.mac.com/jkornhaus/filemaker/, where you'll also find
his demo file.

FWIW, zippScript does have some additional functions over EventScript.
Triggering a script at a point in the future is one, passing additional
controls to a script is another (both do script parameters, but ZS will
also do things with other scripts that might be running).

Matt

In article <455842f0$0$96373$dbd4b001 (AT) news (DOT) wanadoo.nl>,
"Ursus" <ursus.kirk (AT) wanadoo (DOT) nl> wrote:

Quote:
Don,

you don't state version or platform so my answer is a bit vague.

You need a plug in. Look at

Callscript at costello_ryan.tripod.com
EventScript by Softs4Humans
zippScript of www.nightwing.com.au

Ursus

"Don" <reply.to.group (AT) saynotospam (DOT) com> schreef in bericht
news:Y9CdnVXka8LEisXYnZ2dnUVZ_omdnZ2d (AT) comcast (DOT) com...
I have a pop-up field, and I want to trigger a script automatically when
the value has been selected; otherwise the user must click a button to take
the action. If I set the field's button action it prevents the popup from
showing.

Is there a way to do this?

Don


Reply With Quote
  #5  
Old   
Helpful Harry
 
Posts: n/a

Default Re: Trigger script when value changes - 11-13-2006 , 05:45 PM




In article <455842f0$0$96373$dbd4b001 (AT) news (DOT) wanadoo.nl>,
"Ursus" <ursus.kirk (AT) wanadoo (DOT) nl> wrote:
Quote:
"Don" <reply.to.group (AT) saynotospam (DOT) com> schreef in bericht
news:Y9CdnVXka8LEisXYnZ2dnUVZ_omdnZ2d (AT) comcast (DOT) com...

I have a pop-up field, and I want to trigger a script automatically when
the value has been selected; otherwise the user must click a button to take
the action. If I set the field's button action it prevents the popup from
showing.

Is there a way to do this?

you don't state version or platform so my answer is a bit vague.

You need a plug in. Look at

Callscript at costello_ryan.tripod.com
EventScript by Softs4Humans
zippScript of www.nightwing.com.au
The other way is to simply leave the pop-up field alone and put a "Go"
button next to it that runs the script, as many websites do.

Helpful Harry
Hopefully helping harassed humans happily handle handiwork hardships ;o)


Reply With Quote
  #6  
Old   
Don
 
Posts: n/a

Default Re: Trigger script when value changes - 11-13-2006 , 08:15 PM




"Helpful Harry" <helpful_harry (AT) nom (DOT) de.plume.com> wrote

Quote:
In article <455842f0$0$96373$dbd4b001 (AT) news (DOT) wanadoo.nl>,
"Ursus" <ursus.kirk (AT) wanadoo (DOT) nl> wrote:
"Don" <reply.to.group (AT) saynotospam (DOT) com> schreef in bericht
news:Y9CdnVXka8LEisXYnZ2dnUVZ_omdnZ2d (AT) comcast (DOT) com...

I have a pop-up field, and I want to trigger a script automatically when
the value has been selected; otherwise the user must click a button to
take
the action. If I set the field's button action it prevents the popup
from
showing.

Is there a way to do this?

you don't state version or platform so my answer is a bit vague.

You need a plug in. Look at

Callscript at costello_ryan.tripod.com
EventScript by Softs4Humans
zippScript of www.nightwing.com.au

The other way is to simply leave the pop-up field alone and put a "Go"
button next to it that runs the script, as many websites do.

Helpful Harry
Hopefully helping harassed humans happily handle handiwork hardships ;o)
Yes, that is exactly what I have done so far. I'm using FM Pro 7, with a PC
and a Mac (not sharing simultaneously, although it could go that way).

It works, but I was hoping there was a more elegant way to do the job. I
have downloaded EventScript but have not yet figured out how use it for this
task. The selector is simply a pulldown list, and if I add a button action
to the pulldown field it stops the pulldown action from working. I'm not
sure where to integrate the EventScript call. I'll figure it out,
eventually.

Thanks for the help!

Don




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

Default Re: Trigger script when value changes - 11-14-2006 , 03:09 AM



Don

With EvenScript.

A valuelist <NavList>
A global <gNavigation>
A Script <Nav>

In NavList are the (short) descriptions of navigating action you want to
take

The gNavigation field is set to auto-enter, calculated value
[S4HU_EventScript( Get ( FileName ); "NAV" ; gNav)]
The field is put on a layout, display as popup-menu (NOT anything else),
display values from NavList
the Nav script contains something like this. The ScriptParameters are the
same as the values as in your value list.

If [ Get ( ScriptParameter ) = "Open pic" ]
Open URL [ kerken::gMapopen ][ No dialog ]
Else If [ Get ( ScriptParameter ) = "Foto Layout" ]
Go to Layout [ "Foto" ]
Perform Script [ "To Tab"; Parameter: Let ( $$_active_tab = 1 ; 1 ) ]
Else If [ Get ( ScriptParameter ) = "Streets" ]
Perform Script [ "Open City Map" ]
Else If [ Get ( ScriptParameter ) = "Books" ]
Go to Layout [ "Books" (Books) ]
End If

That should give you enough to work with.


Ursus

"Don" <reply.to.group (AT) saynotospam (DOT) com> schreef in bericht
news:rfOdnR2uB6iAusTYnZ2dnUVZ_vSdnZ2d (AT) comcast (DOT) com...
Quote:
"Helpful Harry" <helpful_harry (AT) nom (DOT) de.plume.com> wrote in message
news:141120061245147520%helpful_harry (AT) nom (DOT) de.plume.com...

In article <455842f0$0$96373$dbd4b001 (AT) news (DOT) wanadoo.nl>,
"Ursus" <ursus.kirk (AT) wanadoo (DOT) nl> wrote:
"Don" <reply.to.group (AT) saynotospam (DOT) com> schreef in bericht
news:Y9CdnVXka8LEisXYnZ2dnUVZ_omdnZ2d (AT) comcast (DOT) com...

I have a pop-up field, and I want to trigger a script automatically
when
the value has been selected; otherwise the user must click a button to
take
the action. If I set the field's button action it prevents the popup
from
showing.

Is there a way to do this?

you don't state version or platform so my answer is a bit vague.

You need a plug in. Look at

Callscript at costello_ryan.tripod.com
EventScript by Softs4Humans
zippScript of www.nightwing.com.au

The other way is to simply leave the pop-up field alone and put a "Go"
button next to it that runs the script, as many websites do.

Helpful Harry
Hopefully helping harassed humans happily handle handiwork hardships ;o)

Yes, that is exactly what I have done so far. I'm using FM Pro 7, with a
PC and a Mac (not sharing simultaneously, although it could go that way).

It works, but I was hoping there was a more elegant way to do the job. I
have downloaded EventScript but have not yet figured out how use it for
this task. The selector is simply a pulldown list, and if I add a button
action to the pulldown field it stops the pulldown action from working.
I'm not sure where to integrate the EventScript call. I'll figure it out,
eventually.

Thanks for the help!

Don




Reply With Quote
  #8  
Old   
Don
 
Posts: n/a

Default Re: Trigger script when value changes - 11-15-2006 , 12:32 AM




Quote:
"Don" <reply.to.group (AT) saynotospam (DOT) com> schreef in bericht
news:Y9CdnVXka8LEisXYnZ2dnUVZ_omdnZ2d (AT) comcast (DOT) com...

I have a pop-up field, and I want to trigger a script automatically
when
the value has been selected; otherwise the user must click a button to
take
the action. If I set the field's button action it prevents the popup
from
showing.

Is there a way to do this?

"Ursus" <ursus.kirk (AT) wanadoo (DOT) nl> wrote

Quote:
Don

With EvenScript.

A valuelist <NavList
A global <gNavigation
A Script <Nav

In NavList are the (short) descriptions of navigating action you want to
take

The gNavigation field is set to auto-enter, calculated value
[S4HU_EventScript( Get ( FileName ); "NAV" ; gNav)]
The field is put on a layout, display as popup-menu (NOT anything else),
display values from NavList
the Nav script contains something like this. The ScriptParameters are the
same as the values as in your value list.

If [ Get ( ScriptParameter ) = "Open pic" ]
Open URL [ kerken::gMapopen ][ No dialog ]
Else If [ Get ( ScriptParameter ) = "Foto Layout" ]
Go to Layout [ "Foto" ]
Perform Script [ "To Tab"; Parameter: Let ( $$_active_tab = 1 ; 1 ) ]
Else If [ Get ( ScriptParameter ) = "Streets" ]
Perform Script [ "Open City Map" ]
Else If [ Get ( ScriptParameter ) = "Books" ]
Go to Layout [ "Books" (Books) ]
End If

That should give you enough to work with.


Ursus
Thanks Ursus - very good instruction and it works perfectly. So far
implemented only on Windows, will next try on MacOS.

Din




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.