within a Python toolbox in ArcGIS 10.2 I fill a parameter with a list. parameters[0].filter.list = myList It is essentialy a list of strings and will give the user a range of predefined years.
Later I check a file name if it holds information of a year. In case there is a year to be extracted from the name I want the value in the list defined for parameters[0] to be selected.
If I use SetParameterAsText() then I will overwrite my list of years, and cut my user short on the possibility to correct the year in case the extracted year is not the one the user is focusing on.
Since the year is anyway already part of the list... is there a way to say parameters[0].SelectValue() or parameters[0].SelectListItem() to get a visual confirmation for the user?
I hope it is understandable what I want to achieve.