This topic is locked

afteradd function bug when in master detail

7/1/2016 2:47:37 PM
PHPRunner General questions
dermemo author

When a Master-Detail Relationship is configured and the Childrecords are shown on i.e. Add-Page..
following echo does no longer work:
echo "<script>window.open(http://www.example.com)</script>";
As soon as the Childrecords are no longer shown on the Add-Page, the echo works again.
This happens in PHPRunner 8,8.1,9

romaldus 7/16/2016



When a Master-Detail Relationship is configured and the Childrecords are shown on i.e. Add-Page..
following echo does no longer work:
echo "<script>window.open(http://www.example.com)</script>";
As soon as the Childrecords are no longer shown on the Add-Page, the echo works again.
This happens in PHPRunner 8,8.1,9


Correct Code:

$link = "<script>window.open('www.example.com.com';)</script>";

echo $link;
dermemo author 7/18/2016



Correct Code:

$link = "<script>window.open('www.example.com.com';)</script>";

echo $link;



Sorry but, this solves nothing, the problem has to do with the inner workings of PHPRunner not with the example line of code I posted.

@Sergey, can you please look into that?

Sergey Kornilov admin 7/18/2016

If you have a valid support contract - contact support directly. The code alone doesn't make much sense and doesn't look right, quotes are missing etc. You also need to understand that Add/Edit page with details data works different from basic Add/Edit record.
Besides that outputting Javascript code from server side event is a bad idea. Code like this needs to be placed to Javascript OnLoad event.