This topic is locked

How to refer to list.variables in own function in list-view

5/26/2008 11:38:47 AM
PHPRunner General questions
Pfeiffer author

Hello,
I have the following problem ...
In the list table view I have a database-field called VN_Ref.

The contents is properly shown in every record....
Within the line of a record I defined a funtion of my own (within html-Coding) . The result of this funtion is an echo command, becaue I want to show the result within the record-row.

So this function is posed within the table-row and is passed every record.
How can I refer within my own PHP-function to the actual record-value of the field VN_Ref.

I tried with

globa $data;

$value = $data["VN_Ref"]; but this array acutal does not exist at this moment..
Best regards

Uwe Pfeiffer

J
Jane 5/27/2008

Uwe,
here are some tips:

  1. add parameters to your custom event (in HTML mode on the Visual Editor tab):
    {doevent name="TableName_YourEvent" param=$row}


2. then print values of $params array in this event:

print_r($params);



and select required values.