Hello Williams I'm still confused. And the picture on your link are not displaying. I have the same problem than mscuoco , I'm executing a report , I have 2 date columns (nextdate and extdate) . When extdate is null, I want to display nextdate. I used Items "Data" and my expression is:
if (dataSetRow["extdate"]==null) dataSetRow["nextdate"] else dataSetRow["extdate"]
Sometimes, when date field are empty, we have not the good date for the good row ! Thanks
Have you tried creating a computed column in the data set that achieves what you're looking for? You could then just reference that computed column without having to use any conditional statements in the data element.
No How we can do that?
Here's a quick sample that has a computed column called "StateOrCountry" that shows the state column value, and uses the country value if state is null. Note that there are multiple types of "no values" and it depends on your data type and the data coming back from the database. Overall, you'll want to check for nulls, empty strings, and potentially undefined (though I think the third is unlikely).
If this is Maximo, you'd do it in the fetch method (version 3.7.1) if(row["STATE"]==null) { row["COUNTRY"]; } else { row["STATE"]; }
They working well with your code WWilliams. I don't really understand why because it's the same code of mine, but with { } (I tried with datesetrow() and row() ) Thanks