# MVVM Conditional EL Expression [closed]

Senthilchettyin
2617 3 8
http://emrpms.blogspot.in...

Hi

One of the property may be null, so in the listbox, i just want to display empty when it is null, i just tried the following statement, but still shows "NULL" in the column

<listcell label="@load(p1.mobile eq null ? ' ' : p1.mobile)" <="" p="">

delete retag edit

### The question has been closed for the following reason "the question is answered, right answer was accepted"by Senthilchettyin close date 2013-11-08 07:03:59

What is the type of 'mobile' variable ? I think it is int type and it cannot be null.

( 2013-11-08 06:07:48 +0800 )edit

Sort by » oldest newest most voted

RaymondChao
386 1 4

Hello Senthilchettyi,

I try the expression and it shows empty instead of "NULL". Please take a look at the sample code here.

Is it the statement what you tried?

Senthilchettyin
2617 3 8
http://emrpms.blogspot.in...

Yes. But how come same is not working for me :(

Senthilchettyin
2617 3 8
http://emrpms.blogspot.in...

Hi it is string only, Somehow i have managed as follows

<listcell label="@load(p1.mobile eq 'NULL' ? ' ' : p1.mobile)" />


But anyway, thank you very much for doing this example for me.

Senthilchettyin
2617 3 8
http://emrpms.blogspot.in...

String only, anyway for now, i just managed as follows

<listcell label="@load(p1.mobile eq 'NULL' ? ' ' : p1.mobile)" />


Thank you very much for doing this example for me