This topic is locked

Want to read a another column in the _list.php

6/23/2007 1:07:06 PM
PHPRunner General questions
M
michaelmac author

Hey Everyone..
I have a status field in my table, but I need to read the value of another field in that same row so I can decide what to display in my custom code in my view. I know the $value I read when I go to custom is the $value of that field. I am trying to read say the date value two columns down. Has anyone every done this and if so, tell me how to do it.
Thanks in advance
Mike

J
Jane 6/26/2007

Mike,
you can use global array $data in your code on the "View as" settings dialog:

global $data;

$value = $data["AnotherFieldName"];

...



where AnotherFieldName is your actual field name.