How to fill the null value with custom value?

This public forum is for user-to-user discussions of PHPMaker. Note that this is not support forum.
Post Reply
siriok
User
Posts: 107

How to fill the null value with custom value?

Post by siriok »

hello. i want to fill the null value in list page with custom value like "-"
and i set this code in Row_rendered server event like this:
if ($this->typesv->CurrentValue == "null") {
$this->typesv->ViewValue = "-";
}

but it not change and show for noting value in this field
what wrong is it?
pls. help me
Regard


danielc
User
Posts: 1601

Post by danielc »

siriok wrote:
if ($this->typesv->CurrentValue == "null") {

Use this instead:
if ($this->typesv->CurrentValue == "") {
//your code
}


siriok
User
Posts: 107

Post by siriok »

thank ,daniel it's work.


Post Reply