Tim Anderson Posted November 17, 2010 Posted November 17, 2010 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?
Smef Posted November 17, 2010 Posted November 17, 2010 How are you calling this function? What is the script step where you are calling this?
Tim Anderson Posted November 17, 2010 Author Posted November 17, 2010 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
Smef Posted November 18, 2010 Posted November 18, 2010 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.
Tim Anderson Posted November 18, 2010 Author Posted November 18, 2010 Thanks David, I'll give that a try and let you know Tim
Tim Anderson Posted November 18, 2010 Author Posted November 18, 2010 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)
Tim Anderson Posted November 18, 2010 Author Posted November 18, 2010 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
Tim Anderson Posted November 22, 2010 Author Posted November 22, 2010 A little nudge David to see if you have managed to reproduce this behaviour. Thanks Tim
Smef Posted November 23, 2010 Posted November 23, 2010 Yes, I have, and we're looking into what is causing this.
Tim Anderson Posted November 23, 2010 Author Posted November 23, 2010 Thanks David - good to know it's not just me Thanks Tim
H. Bolecke Posted December 3, 2010 Posted December 3, 2010 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
Tim Anderson Posted December 3, 2010 Author Posted December 3, 2010 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
Claus Lavendt Posted April 30, 2011 Posted April 30, 2011 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 ??
Tim Anderson Posted June 1, 2011 Author Posted June 1, 2011 Any news of a way to get this working yet David? Thanks Tim
Smef Posted June 1, 2011 Posted June 1, 2011 Not yet. This is still on our list of issues to look in to.
Tim Anderson Posted June 1, 2011 Author Posted June 1, 2011 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.
Claus Lavendt Posted May 14, 2012 Posted May 14, 2012 Now it's been almost a year... What's new ? (still not working for me with SM 4.131)
wbasham Posted May 16, 2012 Posted May 16, 2012 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.
Claus Lavendt Posted May 18, 2012 Posted May 18, 2012 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.
wbasham Posted May 18, 2012 Posted May 18, 2012 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.
Claus Lavendt Posted May 21, 2012 Posted May 21, 2012 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...
Recommended Posts
This topic is 4637 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