Skip to main content

Script to Launch Analysis function

Hello, 
I was wondering if it was possible to write a script that will launch a specific analysis. For instance if I write a script where the user wants to summarize something. This would manually be done through the Summarization menu. Is it possible for me to take adavantage of the Summarization menu having already been built to run that anaylsis within the script?

Brian Element Sat, 06/24/2017 - 06:30

Hi chdarc,

Yes you can.  What you do is you exchange:

task.PerformTask

For

task.DisplaySetupDialog 0

The problem with doing this is you are now giving full control to the user to go in and change the fields to summarize, change the file name, change the amounts and so on.  If this is the end of the script than this is probably not a problem but if you use this file after in your script you don't know what parameters the user has changed and the result might not fit in with the next step of your script.  We don't get any return values from task.DisplaySetupDialog.

Brian

The website encountered an unexpected error. Try again later.