task.ValueType set from dialog
Forums
In some functions of IDEA some tasks are set with TRUE of FALSE and one (task.ValueType is set as POSITIVE_VALUES or NEGATIVE_VALUES). I would like to set this in the script based on the input of the user. I got a button with both variants from which the user needs to select one. But i can't get it working. What sort of code do i need to use?
Actually if you look at the
Actually if you look at the history you will probably see these two lines:
POSITIVE_VALUES = 0
NEGATIVE_VALUES = 1
So it is expecting a number but the history uses a constant instead, so you can use the contant so long as you have made sure to define it or use a number, in my example I used the number because I was lazy and didn't want to write any additional code :-)
Brian
Hi Robert,
Hi Robert,
I used the Radio Buttons to do this, here is what my dialog looks like:
I then get the information and place it in a globla variable, in this scenario Postive will return 0 and Negative will return 1. Depending on the task you might need an if statement to change the values into what the IDEA task is expecting.
Here is the code and I have attached the full code with the dialog: