chevell Posted February 21, 2006 Posted February 21, 2006 Ok, i'm using event script to react to the value of a radio button field. The field is empty on a new record and then i am using the value list (approve; deny). I want the plugin to fire off an approved script if its contents are approved and another if its denied. I have it reacting to the field by using a validation calculation as follows (I only have the approved in there so far) If ( watched_field = "Approved" ; S4HU_EventScript( Get(FileName) ; "HelloWorld" ; "" ) ; "" ) Its working and triggering "HelloWorld" but after is says that the field is only allowed to include validated content. I can't figure out how to get rid of that message. The documentation is not great with with this plugin, which is unfortunate, as its a very useful script. Any help is much appreciated. -- Dave
Raybaudi Posted February 21, 2006 Posted February 21, 2006 Case( watched_field = "Approved" ;watched_field & S4HU_EventScript( Get(FileName) ; "HelloWorld" ; "" ); watched_field = "Denied" ;watched_field & S4HU_EventScript( Get(FileName) ; "YourSecondScript" ; "" ); "" )
chevell Posted February 21, 2006 Author Posted February 21, 2006 ok, that satisified how to trigger the script either way, but its still coming up with '"watched-field" is defined to contain only specific values. Allow this value? (revert/yes/no_)' Thanks!
Raybaudi Posted February 21, 2006 Posted February 21, 2006 .... by using a validation calculation ... You haven't to enter that calculation there, but in the AutoEnter/replace option of the field
chevell Posted February 21, 2006 Author Posted February 21, 2006 Ok, thanks. That was my issue. Here's the next problem! I am trying to get this to work with an XSLT solution. I have a layout on the web that has the radio buttons for approve and deny. When I select "approve" the contents of the field change to "approve?" same with "deny". it changes to "deny". I really need to find a way to trigger a script from an xslt solution. This seems like the most logical way. Perhaps I'm barking up the wrong tree?
comment Posted February 22, 2006 Posted February 22, 2006 I know nothing about web publishing, but it seems to me easier to have two buttons, "Approve" and "Deny", that would trigger a script each. The script can also set the field to the appropriate value - and no plugin is required.
Raybaudi Posted February 22, 2006 Posted February 22, 2006 When I select "approve" the contents of the field change to "approve?" same with "deny". it changes to "deny". I assume that "deny" changes to "deny?" . The "?" appears only if EventSript fails to launch the script ( so that it gives the "?" result) So double check the calc, expecially the Name of the script to fire.
chevell Posted February 28, 2006 Author Posted February 28, 2006 Well, the script works fine and triggers locally without issue. Its only through the web that it puts the ? after the result. I just don't think that way is going to work..... GRRR!
Homer Posted March 1, 2006 Posted March 1, 2006 I am trying to get this to work with an XSLT solution Sorry for replying a bit late Chevell. Actually EventScript like almost every known plug-ins isn't working through the web (IWP or CWP). EventScript is tight to the built-in calculation engine on the client-side and it requires a FileMaker client software to work. Currently, this plug-in is working on Pro, Developer, Pro Advanced, runtime and kiosk distributions. But not over the web!! To be triggered through a Web shared database, the plug-in and the target script should be handle by the FileMaker server Advanced and I'm not sure the server product is ready for this!? A workaround would be to use the -script parameter available under XSL http request. Look at the custom web publishing PDF file for more details. HTH.
Recommended Posts
This topic is 6862 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 accountSign in
Already have an account? Sign in here.
Sign In Now