This topic is locked

[HELP] Can't change value in "after record processed" (is Bug?)

5/18/2020 6:27:33 AM
PHPRunner General questions
W
wehaye author

Just like the title I wrote.
I'm trying to replace the value at the "List page: after record processed" stage with the following syntax:

$data['keyA'] = 'value A';


But does not change when displayed.
Is this a bug?
Please help to be fixed.
Thank you very much.

C
copper21 5/18/2020

If you are just trying to view a value like that, you can just select the field you want, go to the "view as" section and then select "custom".
$value = 'value A';
This will override the actual value in that field for viewing purposes.

W
wehaye author 5/18/2020



If you are just trying to view a value like that, you can just select the field you want, go to the "view as" section and then select "custom".
$value = 'value A';
This will override the actual value in that field for viewing purposes.


Actually it's not that simple.
I need access to $ data[] and $pageObject in the "after record processed" phase.
I only gave a very simple example above to make it easier to prove that there was a problem in this phase.

C
copper21 5/18/2020

Ok,
I am not understanding fully what you want then. In the after record processed event, you have access to the data on the page via $data['FiledName'] and $pageObject as it is part of the function of that page.

fhumanes 5/25/2020



Just like the title I wrote.
I'm trying to replace the value at the "List page: after record processed" stage with the following syntax:

$data['keyA'] = 'value A';


But does not change when displayed.
Is this a bug?
Please help to be fixed.
Thank you very much.


In the "after record processed" event, Runner has already performed the Insert or Update database operation.
If you want to complement information in that table or in other tables, you must do with your PHP code, the actions in the Database.
Cheers,

fernando