Closed djay closed 2 years ago
@djay In the next release, you can the input parameter value:
wb = wb.setParameter(inputName=None, value="Ligue 1",
inputParameter="[Parameters].[P.League (copy)_1642969456470679625]")
which is equivalent to:
wb = wb.setParameter("P.League 2", "Ligue 1")
The input name is different from the parameter name in the model. In the query the parameter name usually looks like [Parameters].[something]
@bertrandmartel thats a bit confusing IHO. is inputParameter meant to be an override of the inputName or value? I think you're saying its an override of the inputName since that is set to None? but its in another format... so how am I supposed to work out what that special format is? Wouldn't a validate=False
be more intuitive?
I wrote this code to get around it but would be better if it was flag or something?