Display value is not changing in browser from row_rendering

I have a custom field with an expression of concat(“Don’t do ,” bad ", “thing”) and then I want to change the value the user see and for that I though of using row_rendering event to change the ViewValue. Following is my code:


// Row Rendering event
function Row_Rendering() {
	// Enter your code here
if (CurrentPageID() == "list") {
$this->message->Value = "Bonjour Sagesse";
}
}

Bad still what is being display as value in the field message in the browser is Don’t do bad thing (the value set in expression). I even try to use Page_DataRendering all in vain.

// Page Data Rendering event
function Page_DataRendering(&$header) {

	// Example:
	//$header = "your header";

$this->linktoshare->CurrentValue = "Bonjour Sagesse";
}

How can I change the value that is sent to the user to see ?

There is no “Value” property, you should set the ViewValue property in Row_Rendered (not Row_Rendering), see the example in the topic Server Events and Client Scripts in the help file.