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.

RegisterGroovy not working in windows

Featured Replies

Hi,

I've done a couple of modules in scriptmaster and registered them using RegisterGroovy in a startup script. It works great on my mac and on another mac. But it doesn't work on windows.

The scripts that are using the functions are showing instead of the function name.

RegisterGroovy returns 1 and SMLastError is empty.

Anybody have any idea what's wrong?

means that you do not have the ScriptMaster Plugin Installed. You will need to copy it to your FileMaker Extentions directory and then restart your FileMaker.

  • Author

It is installed.

I just installed everything from scratch on another windows machine and it works there.

I checked that the plugin i registered in FileMaker, but it still shows in the two previous windows machines. Weird.

The machines showing do not have the plugin installed/turned on. You will need to install the plugin on those systems. Once you have put the plugin in your FileMaker/Extensions directory and quit and restarted FileMaker you should be able to see it in your FileMaker -> Preferences -> Plugins tab, where it should be checked and enabled.

  • Author

I have checked, the plugin is installed, and enabled, and my modules are still showing up as .

Edited by Guest

OH! I thought the registergroovy function was showing up as "Function Missing." The actual module you registered is what isn't showing up, right?

When you call the registery groovy function a function is added to your function list. This function is only stored for that current session. When you quit filemaker the function you registered is cleared from memory. The function you registered and added to your script will show as "Function Missing" until you call the register Groovy function to re-register the function.

The best way to prevent this from happening is to register your functions using the RegisterGroovy function in the startup script for your database. This will make sure that your functions are registered each time your users connect to the database.

  • Author

The registerGroovy code is in a startup-script. I've checked that it's running and isn't returning any errors.

Are you loading any jar files and using a SMreset somewhere else??

This bit me recently....

  • Author

I was using SMReset and loading a jar actually. But I've since removed the SMReset and I'm just using SMLoadJar.

Is that the culprit? What is the problem? Any known work-arounds?

  • Author

OK, here's a weird one.

I tried shutting down filemaker on one of the misbehaving windows machines and removed the plugin and installed a new copy from the zip-file. When I started filemaker again it worked!

But the strange thing is that it also started working again on the other windows machine, that I hadn't touched.

Oh well... The mystical world of windows and filemaker seems to throw a lot of curve balls...

It sounds like those scriptmaster functions may not have been registered properly when the database was loaded on those machines. Quitting and restarting filemaker would have re-opened your database, which would have re-run your startup script and then registered those modules.

Edited by Guest

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.