Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

This topic is 6287 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

Hi has anyone gotten any of the script triggering plugins (ZippScript, EventScript, FMExample) to work over IWP? I don't even need it so much for script triggering as I need it for dynamic script selection (i.e. if you click a record, it runs a script named in a related record)

Posted

The modality of IWP would make you click buttons anyway, so you should perhaps hone your relational approaches to facilitate what you're after instead? If say the need is to create records in a jointable, should it be ditched and replaced with a recursive CF in a FIELD dealing with the linking ... to boil all scripting down to "submit"!

It's not easy to change your behaviour in that direction, and it's definately going to take a lot more development time to accomplish what you're after, making you wonder if IWP really is the worth it when you compare it with say php'ing instead.

--sd

Posted (edited)

Thanks, I don't actually need it for script triggering. I need it for dynamic script selection. In other words when I click a button on a record I want it to run a script named in a related record.

Edited by Guest
Posted

I got that, but it's only in some Windows and KDE type of interfaces it really exists, Apple's Human user interface guideline kind of dissuade such behaviours ... and suggest you commit to a more industrial metaphor which suggest make a selection and press a button.

Perhaps am I not getting the finer point of this:

I need it for dynamic script selection. In other words when I click a button on a record I want it to run a script named in a related record

First off aren't scripts tied to specific tables/files any more - It could be that you havn't used $variabels yet, due to version you're on, but if a button reside in a portalrow is there a wealth of matters you can stuff in the script parameter, to make it jump to different call's of subscripts according to these paramters. Even more esoteric matters can be plucked up via recursions in the script.

--sd

Posted (edited)

I understand all about script parameters and variables. The problem is that Filemaker still makes you hard code the script you want to run. There is no mechanism to select the script you want to run based on the result of a calculation.

Without a plug in, in Filemaker I still have to use:

If get(scriptparameter)=1

Perform Script "Test"

else if get(scriptparameter)=2

Perform Script "Test2"

end if

and so on and so forth. This gets laborious to maintain for large amounts of scripts. Filemaker ought to allow us to set what script we want to run based on a calculation, or the value of a field, such as:

Perform Script (relatedtable1:scriptname)

So without this the only way to select a script based on a calc, value of a field, variable, etc., is with a script trigger plug in. Unless someone knows a way to do it without one, if so, I would love to know.

In case you're wondering what I'm doing, I have a select action dialog box that filters based on what actions the user has access to. My actions table contains all the "friendly names" along with the actual script names. Every time I add a new script for an action I don't have to make any changes in any other scripts. All I have to do is add a record to the actions table and put in the script name in the script name field. Then the plug-in runs the appropriate script when that action is called.

BTW I'm on 9advanced on Windows XP now. I have clicked "My Profile" and don't find where to update my current version info.

Edited by Guest
Posted (edited)

Check this out:

http://web.mac.com/zueiv/iWeb/FileMaker/Script%20Killing%20Techniques/AFA363C6-2D85-4C6D-82E2-273F3722A69E.html

But the very nature of these added scripts are still not revealed - perhaps you're barking up the wrong tree, the care here is; it's not the creation of records or requests apparently???

BTW To change your profile, turn to "Filemaker Questions"

--sd

Edited by Guest
Posted

That's a great custom function that I will probably use. Thanks!

But it's not really related to my issue. I think I will just have to manually create an if statement for each action (script) that I add. I could also create all my actions in one mega script and assign a script parameter to each but not sure I like that idea.

Curious to hear if anyone else has any ideas. I still want to hear from someone who has gotten a script trigger plugin to work over IWP. I saw one post on here where someone said eventscript worked with IWP but he has not emailed me back.

Posted

I just made a small test where I via a single step in a master script did this:

Set Variable [ $dummy; Value:Evaluate("zippScript_PerformScript( Get ( FileName ) ;Get ( ScriptParameter ))") ] 

While it works in native mode is it of no avail in IWP - I'm afraid. This would suggest you go to your mission-statement and tell us detailed about purpose and context, you get absolutely nowhere without telling this forum about it - if we're to help in any way.

This means that script intensity your first hunch have dictated needs to be transformed into CF's or looped request builds on stuff stored in the records holding the "Human like" commands.

--------------------------------------------

I came to think about the above test, Evaluate( uses the clipboard, so it can't work ... but even test with the direct calculation won't trig the script under IWP - while it does in native mode.

Have you made any tests with:

http://www.youseful.net/download/fmplugin/IWPTriggerTrial.zip

It has been removed from FMwebschools own page, probably due to "issues"!!!!!

--sd

This topic is 6287 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.