Hello,
I have the next expression:
{(listadoHYG_cabecera.fechaFactura == null) ? listadoHYG_cabecera.fechaInicioFmto+" - "+listadoHYG_cabecera.fechaFinFmto: listadoHYG_cabecera.fechaFactura}
I need compare the field fechaFactura with null, but it doesn`t work. The field fechaFactura contains null. How should I use the comparison operator?
Thank you!
Expression compare with null
Re: Expression compare with null
Hello.
What type of datasource do you use?
Usually, the null values are converted to empty string.
Thank you.
What type of datasource do you use?
Usually, the null values are converted to empty string.
Thank you.
Re: Expression compare with null
I use JSON datasource.
I compared it with an empty string and it works. Thank you.
Solution:
{(listadoHYG_cabecera.fechaFactura == "") ? listadoHYG_cabecera.fechaInicioFmto+" - "+listadoHYG_cabecera.fechaFinFmto: listadoHYG_cabecera.fechaFactura}
I compared it with an empty string and it works. Thank you.
Solution:
{(listadoHYG_cabecera.fechaFactura == "") ? listadoHYG_cabecera.fechaInicioFmto+" - "+listadoHYG_cabecera.fechaFinFmto: listadoHYG_cabecera.fechaFactura}
Re: Expression compare with null
Hello.
We are always glad to help you.
Let us know if you need our help.
Thank you.
We are always glad to help you.
Let us know if you need our help.
Thank you.