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

Error with thread on SM module

Featured Replies


// ChooseHome()

// 10_06_10_JR WORKING

// v1



import javax.swing.JFileChooser



chooser = new JFileChooser()

chooser.setFileSelectionMode( JFileChooser.DIRECTORIES_ONLY )

chooser.setCurrentDirectory( new File(" ") )

chooser.setDialogTitle( "Select the HOME folder" )

if( chooser.showOpenDialog( null ) == JFileChooser.APPROVE_OPTION ) {

home = chooser.getSelectedFile().getAbsolutePath()

// comment out next line and it is fine

fmpro.evaluate('Let($$' + 'homeDIR' + ' = "' + home + '"; 1)')

return home

} else {}

return false





and ideas why the above is giving me the following error??

Windows XP, FM 11.04 SM 4.131

Has been working ( I think) till the latest SM update





java.lang.IllegalStateException: FileMaker called plugin on thread: Thread[main,5,main]; but plugin is trying to call back to FileMaker on a different thread: Thread[AWT-EventQueue-0,6,main]. This is not allowed.

I get the same error on on OS X 10.6.8, FMPA 11.0v4, SM 4.131.

Looks like thing that gave an error in 4.13 but was fixed at least for some functions in 4.131.

That being said, I'm curious as to why you want to use the fmpro.evaluate just to set a variable?

Interestingly, the global variable does get set even with the erro.... Maybe that's a clue?

  • Author

David it was a test of concept so that multiple things could be the result of a single function.

We have a new version of ScriptMaster (4.132) that should fix this issue. It has yet to be live deployed but if you'll contact me via email I'll send you a copy of the plugin to test.

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

Search

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.