Skip to main content
I have created a published parameter and set the default value to 'None' so that I can test if the user ran the translation with the prompt. The first time that the user runs the translation (if they didn't select a valid value for the parameter), the value is 'None' which causes the script to abort.

 

 

However, when the user then chooses a valid value for the parameter and runs the translation, that value "sticks" with the script. When the user runs the translation again, the valid value is still there, not "None".

 

 

I want to ensure that the user runs the translation with the prompt each time. Is there a way to "unstick" the value that the user has selected the previous time that they ran the script?

 

 

Thanks
Hi,

 

 

As far as I know, there is no way to reset a parameter setting automatically after running the workspace.

 

I think a recommended way is to run with "Prompt and Run Translation" command, so that the user can confirm parameter settings before running.

 

 

Alternatively, although I would not recommend this, there is a way that creates a parameter dialog to get user input as a Python global variable, in the Startup Python Script. The trick I posted in this link can be applied.

 

Message or Alert Box (http://fmepedia.safe.com/AnswersQuestionDetail?id=906a0000000cojVAAQ)

 

 

Takashi
This is a great solution, Takashi, thanks.

 

 

I think that a better solution is for FME to have a down arrow beside the "Prompt and run translation" button. When the user clicks the down arrow, a menu item with a check on it displays with something like "Retain user selections for next execution". When the user checks the item, FME remembers the user's selections for the parameters. When the user unchecks the item, FME resets the user's selections to whatever the default was when the user created the parameter.

Reply