Praveen Krishnamurthy Posted March 27, 2019 Share Posted March 27, 2019 Can you let me know the api for closing the spotfire application with an example dxp file. I want to use the iron python script to close the spotfire application programmatically in script. Can you share a sample dxp file for the above. Link to comment Share on other sites More sharing options...
Abhilash Jadhav 2 Posted March 27, 2019 Share Posted March 27, 2019 Spotfire API: https://docs.tibco.com/pub/doc_remote/spotfire/7.5.0/doc/api/html/M_Spot... Sample Script: ============= import Spotfire.Dxp.Application Application.Exit() ============= Link to comment Share on other sites More sharing options...
Praveen Krishnamurthy Posted April 9, 2019 Author Share Posted April 9, 2019 This is not working me Added the following two lines in script and tried to run script import Spotfire.Dxp.Application Close() Throws the following error Traceback (most recent call last): File "Spotfire.Dxp.Application.IronPython20", line unknown, in ExecuteForDebugging File "", line 2, in NameError: name 'Close' is not defined Microsoft.Scripting.Runtime.UnboundNameException: name 'Close' is not defined at IronPython.Runtime.PythonContext.MissingName(SymbolId name) at Microsoft.Scripting.Runtime.LanguageContext.LookupName(CodeContext context, SymbolId name) at Microsoft.Scripting.Runtime.RuntimeHelpers.LookupName(CodeContext context, SymbolId name) at $26##26(Closure , Scope , LanguageContext ) at Microsoft.Scripting.SourceUnit.Execute(Scope scope, ErrorSink errorSink) at Spotfire.Dxp.Application.IronPython20.IronPythonScriptEngine.ExecuteForDebugging(String scriptCode, Dictionary`2 scope, Stream outputStream) Link to comment Share on other sites More sharing options...
Recommended Posts
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