This topic is locked

Change Displayed Data in Events

10/30/2008 4:00:27 PM
PHPRunner General questions
E
erago author

based off of event in members Template
List page: After Record Processed
if($data["Beginpay"] && $data["Endpay"])

if($data["Beginpay"]==$data["Endpay"])

$row["1Endpay_value"]="Lifetime";
this works, but what if you want to change all the displayed value's for Field_B where Field_B value IS NULL

for example;
// custom code , change NULL to Custom Text
IF($data["Field_B"])

IF ($data["Field_B"]IS NULL)

$row["1Field_B_value"]="Custom Text";
what am I missing?

Sergey Kornilov admin 10/30/2008

if (!$data["Field_B"])

$row["1Field_B_value"]="Custom Text";

E
erago author 11/1/2008

if (!$data["Field_B"])

$row["1Field_B_value"]="Custom Text";


if (!$data["Field_B"])

$row["1Field_B_value"]="Custom Text";
just produces a blank field, just like it is still displaying NULL instead of the "Custom Text"
I'm I putting it in the correct event? List page: After Record Processed.

J
Jane 11/5/2008

Hi,

I'm I putting it in the correct event? List page: After Record Processed.



Yes.

You can publish your project on Demo Account and send to support@xlinesoft.com a URL to your pages along with instructions on reproducing this error.

I'll find what's wrong with your project inspecting it at Demo account site.
Also try to use custom format on the "View as" settings dialog on the Visual Editor tab instead.

Here is a sample:

if (!$value)

$value="Custom Text";