Hi,
In an Enterprise Custom Field that is formula driven in Project Server 2010, when I use an IIF Statement, provided one of the tests in that IIF statement evaluates to true, the value for that test is written to the field. Otherwise, the default"else" value at the end of the IIF Statement is the value that is written to the custom field.
For a formula that has already generated a value, the next time the formula is run, I'd like that value in that field to remain the same, if all the tests in the statement evaluate to false (it reaches the default "else" value is reached).
But I've found that I can't include the name of the Enterprise Custom Field as the default "else" value, as I get a circular reference error.
How can I structure this so that value in the field against which that formula is run remains the same, if none of the tests in the IIF statement evalue to true?
I thought using ... ,"") leaves it untouched, but that seems to clear out the field value.
Alternatively, should I be using the SWITCH statement instead, which doesn't have a default "else" value?
I tried doing that. But, even though the tests in my SWITCH formula all equate to false, it seems to clear out the content of my Enterprise CUstom Field. Is this the correct behavior for the SWITCH statement?
Any suggestions on how I might be able maintain an exisiting value in an Enterprise Custom Field (via IIF, SWITCH ir any other means), as long as my test logic evaluates to false would be most appreciated.
Cheers,
Wayne