This topic is locked

Display message after import

1/25/2016 11:41:30 AM
PHPRunner General questions
M
macalister author

Hi.
Im traying to display a message after import.
i could do that in phprunner 6.x:



//BEFORE INSERT RECORD EVENT --- WORKS IN PHPRUNNER 6x
global $conn, $error_message;
$strSQLExists = "select * from AnyTable where SomeColumn='".$rawvalues["value"]."'";

$rsExists = db_query($strSQLExists,$conn);

$data=db_fetch_array($rsExists);
if(!$data){
$error_message .= "<font color=red> this value: ".$rawvalues["value"]." not exists ! </font>
";

return false;

}
else{
.

.

.

return true;

}


But in phprunner 8.0 i cant display the not imported records values (rawvalues["value"]). Exists any way to do that in phprunner 8 ?
Thanks in advance.

Sergey Kornilov admin 1/25/2016

In PHPRunner 8.x in BeforeInsert event you can do something like this:

$message = "My message";

return false;


This message will not be printed on the page right away but will be added to log file and user has the option to view this log file after import is finished.

M
macalister author 1/26/2016



In PHPRunner 8.x in BeforeInsert event you can do something like this:

$message = "My message";

return false;


This message will not be printed on the page right away but will be added to log file and user has the option to view this log file after import is finished.


Thanks for your fast answer, but im trying do it but without success, the message is not printed on import log. I need to do something additional ?
Thanks

Sergey Kornilov admin 1/26/2016

I double-checked - this option was only added in PHPRunner 8.1. You cannot do this in PHPRunner 8.0.

M
macalister author 1/26/2016



I double-checked - this option was only added in PHPRunner 8.1. You cannot do this in PHPRunner 8.0.


thanks.
So.. there is no way to display this kind of messages on phprunner 8.0 like in phprunner 6.x or 8.1?

Sergey Kornilov admin 1/26/2016

No