Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Issues with PopupMenu in plugin

Featured Replies

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?

How are you calling this function? What is the script step where you are calling this?

  • 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

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.

  • Author

Thanks David, I'll give that a try and let you know

Tim

  • 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)

  • 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

  • Author

A little nudge David to see if you have managed to reproduce this behaviour.

Thanks

Tim

Yes, I have, and we're looking into what is causing this.

  • Author

Thanks David - good to know it's not just me

Thanks

Tim

  • 2 weeks later...

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

  • 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

  • 4 months later...

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 ??

  • 1 month later...
  • Author

Any news of a way to get this working yet David?

Thanks

Tim

Not yet. This is still on our list of issues to look in to.

  • 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.

  • 11 months later...

Now it's been almost a year...

What's new ?

(still not working for me with SM 4.131)

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.

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.

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.

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

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.