November 17, 201015 yr I have created a pluging using ScriptMaster advanced that includes PopupMenu. I have found this unreliable for some reason, no values in the popup. I thought I had found the problem, and was setting a variable with the values and then using that variable as the parameter but now that I find that not working. I have even copied the 'red, green and blue' from the ScriptMaster file to try that but I am not getting a popup. Using Mac OSX 10.5.8 and 10.6.5, all obvious things -checked other plugin functions working and that it is registered. Any ideas why I am having this problem?
November 17, 201015 yr How are you calling this function? What is the script step where you are calling this?
November 17, 201015 yr Author Hi David, Set Variable($result; PopupMenu( $statusDef )) Also just tryng on Windows7 and am getting an error with the plugin - An error occurred while trying to load com.prosc.fmkit.PluginBridge. Make sure that it is loaded in a jar called 'plugin.jar' could this be related? Plugins were both created on Mac Thanks Tim
November 18, 201015 yr It sounds like you may have accidentally modified the module's code before building the plugin. Try re-downloading scriptmaster from our site and using a fresh copy of the popup menu module. You can copy and paste the code from the fresh download to your old scriptmaster file if you have other changes you want to make sure you don't lose. If doing this doesn't resolve this issue give me a call and we can do screen sharing and see what is happening on your system.
November 18, 201015 yr Author Hi David, no joy. Even tried creating a plugin ust for the popup from the new download. Console messages below. Hopefully speak later Tim 18/11/2010 22:19:51 [0x0-0x231231].com.filemaker.client.advanced[4978] Nov 18, 2010 10:19:51 PM com.prosc.fmkit.RegisterablePlugin defaultRegister 18/11/2010 22:19:51 [0x0-0x231231].com.filemaker.client.advanced[4978] INFO: Successfully registered popup: Major Version: 1 18/11/2010 22:19:51 [0x0-0x231231].com.filemaker.client.advanced[4978] Type: Enterprise License 18/11/2010 22:19:51 [0x0-0x231231].com.filemaker.client.advanced[4978] Registered To: Tim Anderson Group 18/11/2010 22:19:51 [0x0-0x231231].com.filemaker.client.advanced[4978] Nov 18, 2010 10:19:51 PM com.prosc.fmkit.PluginBridge doFunction 18/11/2010 22:19:51 [0x0-0x231231].com.filemaker.client.advanced[4978] SEVERE: Throwable: java.lang.RuntimeException: Unable to instantiate compiled ScriptMaster function: PopupMenu( choices ) 18/11/2010 22:19:51 [0x0-0x231231].com.filemaker.client.advanced[4978] java.lang.RuntimeException: Unable to instantiate compiled ScriptMaster function: PopupMenu( choices ) 18/11/2010 22:19:51 [0x0-0x231231].com.filemaker.client.advanced[4978] at com.prosc.beanshell.CompiledFunction.getGroovyFunction(CompiledFunction.java:97) 18/11/2010 22:19:51 [0x0-0x231231].com.filemaker.client.advanced[4978] at com.prosc.beanshell.CompiledFunction.convertParams(CompiledFunction.java:73) 18/11/2010 22:19:51 [0x0-0x231231].com.filemaker.client.advanced[4978] at com.prosc.fmkit.PluginBridge.doFunction(PluginBridge.java:854) 18/11/2010 22:19:51 [0x0-0x231231].com.filemaker.client.advanced[4978] Caused by: java.lang.ClassNotFoundException: scriptmaster.Module_MTA3NzIyNzQxNgXX 18/11/2010 22:19:51 [0x0-0x231231].com.filemaker.client.advanced[4978] at java.net.URLClassLoader$1.run(URLClassLoader.java:202) 18/11/2010 22:19:51 [0x0-0x231231].com.filemaker.client.advanced[4978] at java.security.AccessController.doPrivileged(Native Method) 18/11/2010 22:19:51 [0x0-0x231231].com.filemaker.client.advanced[4978] at java.net.URLClassLoader.findClass(URLClassLoader.java:190) 18/11/2010 22:19:51 [0x0-0x231231].com.filemaker.client.advanced[4978] at java.lang.ClassLoader.loadClass(ClassLoader.java:307) 18/11/2010 22:19:51 [0x0-0x231231].com.filemaker.client.advanced[4978] at java.lang.ClassLoader.loadClass(ClassLoader.java:248) 18/11/2010 22:19:51 [0x0-0x231231].com.filemaker.client.advanced[4978] at com.prosc.beanshell.CompiledFunction.getGroovyFunction(CompiledFunction.java:93)
November 18, 201015 yr Author Hi David, Thanks for you help tonight - a quick update - creating plugin from a local, non-hosted, file does not fix the problem. Cheers Tim
November 22, 201015 yr Author A little nudge David to see if you have managed to reproduce this behaviour. Thanks Tim
December 3, 201015 yr Hi Tim, we've had the problem too and solved it by renaming the function "PopUpMenu" into "PuM" or anything else. Maybe it works for you too... Greeting from Berlin HB
December 3, 201015 yr Author Hi HB, Have tried a couple of different names, including PuM, and a plugin wit only that function but still the same result. Thanks anyway Tim
April 30, 201114 yr I have tried to do this as well with SM 4_124 version with 2 different self generated plugins. Both were renamed with a prefix ( e.g. LCS_PopUpMenu ( choices ). It works in the SM file when running the "Run Script" button. Any progress in solving this issue ??
June 1, 201114 yr Author Ok, thanks David. I guess there is a lot on the to do list with Docubin recently released Not yet. This is still on our list of issues to look in to.
May 14, 201213 yr Now it's been almost a year... What's new ? (still not working for me with SM 4.131)
May 16, 201213 yr Can you tell me if the plugin is being generated on a Windows or Mac machine? Which OS version? Also, it would be helpful to know which version of the plugin is being used also (Mac or Windows). I've been able to successfully create a plugin using OS 10.7 and the PopUp function works using the plugin on the same platform. This was using SM 4.131.
May 18, 201213 yr Hi I created it on Mac 10.6.8, but have also created on 10.7.2, but it still does not work. I have only created the plugin on mac, for both platforms, but did actually never test to see if this function was working on windows.... However it didn't on mac, which is very important... In this thread it was suggested that you should rename the function, which I have done. When I hit the "run" button in the SM FM file it does run perfectly fine, but not when compiled into a plugin.
May 18, 201213 yr Are you using the latest version of ScriptMaster? I have been able to successfully create a plugin using the Popup module and tested it successfully in a simple database. I am happy to send you both the generated plugin and the sample file if you contact me via email. The plugin was created and tested on OS X 10.7.4.
May 21, 201213 yr Hi Brent I think I found the problem... When I purchased the SM (about 4.121 I think), I started with your FM database and then added other functions, as well as renaming functions. For each upgrade, I only updated the plugin, as I did a lot of customization with the functions. The other day, I imported my functions into the FM database, that came with 4.132 and created a new version of my plugin. And now it works ! I could not see, what was changed in the FM file as this function does not use any addition jar libraries...
Create an account or sign in to comment