This topic is locked
[SOLVED]

'ghost' event code

2/1/2022 9:52:53 PM
PHPRunner General questions
T
thamestrader author

I have custom view event code in the event.php files in the include subfolder for pages that are not specified for the custom view.

It seems the event code has been inherited from the table on which the custom view is based.

Suppose the base table has an Add page with event code, the customview doesnot have an add page but the event,php file for the view has the same add page event code as the base table.

I wanted to tidy this up as it causes text searches of the generated event.php files, to find all the places where a specific data item is used in event code, to create incorrect results.

I have found that 'adding' the Add page to the view will make the event code visible on the PHPRunner Event Tab/Page where it can then be deleted. Usually this will remove the event code from the views event.php file, but not always.

My application was originally devloped in 2015 using v9.? and is now on v10.6. I can't find a common link yet between view event code that I have been able to remove and view event code that I can't. Has anyone else encountered this issue? Any suggestions appreciated.

T
thamestrader author 2/4/2022

I've not foudn how the ghost code was created but I have at least managed to exorcise my application and all the ghost code has now gone. I deleted the contents of the Output folder and Built my project and now its clean.......