_FmNx_Register( "WEB-2.0-TK3N-F9SV-YT2F-530F2"; "FM Nexus" )
If a valid license key is entered, then the result is the word "Success"
IMPORTANT: When using plug-in functions on a FileMaker Server from a scheduled script, you must call _FmNx_Register every time the script runs.
If your solution requires that the plug-in be present, you can also include the following steps to check if the plug-in is installed. Then follow this with the registration logic to make sure the Web Services plug-in also gets registered.
Set Variable [$_version; Value:_FmNx_Version( "short" )]
If [$_version = "?"]
Show Custom Dialog["Web Services Plug-in"; "The web Services Plug-in is not installed or activated."]
Halt Script
End If
Set Variable [$_result:; Value: _FmNx_Register( "WEB-2.0-TK3N-F9SV-YT2F-530F2"; "FM Nexus" )]
If [$_result <> "Success"]
Show Custom Dialog["Web Services Plug-in"; "The web Services Plug-in is not registered correctly."]
Halt Script
End If
Comments