February 21, 200619 yr 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
February 21, 200619 yr Case( watched_field = "Approved" ;watched_field & S4HU_EventScript( Get(FileName) ; "HelloWorld" ; "" ); watched_field = "Denied" ;watched_field & S4HU_EventScript( Get(FileName) ; "YourSecondScript" ; "" ); "" )
February 21, 200619 yr Author 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!
February 21, 200619 yr .... by using a validation calculation ... You haven't to enter that calculation there, but in the AutoEnter/replace option of the field
February 21, 200619 yr Author 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?
February 22, 200619 yr 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.
February 22, 200619 yr 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.
February 28, 200619 yr Author 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!
March 1, 200619 yr 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.
Create an account or sign in to comment