Reply To: UI button – parameters

Ben Cohen


Is the problem that parameter script is running more than once – therefore “n = n + 1” is not working as expected?

If so you have two possible solutions
1. Under details ‘Compatibility Options’ check the box ‘Run parameter script only once’

2. You could also use “APPLICATION_QUERY” to also make sure it only runs once

n = APPLICATION_QUERY (“parameter_script”, “firstoccasion_in_progress”, isFirstRun)
if isFirstRun then
// do stuff