This topic is locked

After Record Processed event results not showing

12/11/2008 8:31:16 AM
PHPRunner General questions
G
gawde author

Hello All, hope someone can help me see what I am missing.
Using 5.0 build 689.
Am using the following code in After Record Processed event on list page. Format is vertical, 3 across.

The debug statement (print_r) shows I am getting the result I want but the actual field "category_desc_value" on the List page is still just the description.

What am I missing?
if ($data["Category_root"] == "1") {

$row[$col."Category_desc_value"] = "<a href=\"scinventory_list.php?a=search&value=......<a>";

}
else {

$row[$col."Category_desc_value"] = "<a href=\"sccategories_list.php?cgrp=".$data["Category_group"]."&lv=.....<a>";

}

print_r(" ROW-COL = ".$row[$col."Category_desc_value"]);

Thanks in advance.

J
Jane 12/12/2008

Hi,
please see my changes in Bold:

global $record;

if ($data["Category_root"] == "1")

{

$record["Category_desc_value"] = "<a href=\"scinventory_list.php?a=search&value=......\">...<a>";

}

else

{

$record["Category_desc_value"] = "<a href=\"sccategories_list.php?cgrp=".$data["Category_group"]."&lv=.....\">...<a>";

}

G
gawde author 12/12/2008

Hi,

please see my changes in Bold:

G
gawde author 12/12/2008

Hi,

please see my changes in Bold:


Thanks Jane, that did the trick.

Based on your answer, I would suggest the 5.0 documentation for After Record Processed event needs to be changed to match.