Question

How to make date parameter optional


I want to have the option of a date to be used as a parameter for the workbench. If there is a date entered this is used to only process specific records, if the parameter is null then just proceed with all records.

 

The date/time parameter has an "optional" tick box, but even with this ticked it's impossible to clear the default date? When I run with parameters, I also cannot clear the default date to null.

 

 

This is in FME 2015.0 (20150217 Build 15253 WIN64)

 

 


2 replies

Userlevel 2
Badge +17
Hi,

 

 

I was able to reproduce the same situation as yours with FME 2015.1.0.2 build 15482. A Date/Time type parameter couldn't be set to blank even if I have checked the Optional check box. I'm not sure whether the behavior is intentional.

 

 

As a workaround, how about adding another parameter with Choice "Yes/No" type?

 

e.g. use the date to process specific records if the user choose "Yes"; ignore the date and process all records, otherwise.

 

 

Takashi
Thanks for having a look.

 

Good suggestion for a work around (more elegant than mine!). I've got this working now with your suggestion.

Reply