This topic is locked
[SOLVED]

 Button - GetNextSelectedRecord

9/7/2015 11:31:45 AM
PHPRunner General questions
bobdutil author

I'm trying to send a selected record id from a list page to a stored procedure and get the following error when using GetNextSelectedRecord. I also get the error if I put a button in the grid and use GetCurrentRecord()


Here is the code I placed in the button properties.


Any ideas?
Thanks

Sergey Kornilov admin 9/7/2015

Try to open buttonhandler.php in text editor to see what / character on line 102 might be causing this issue.

bobdutil author 9/7/2015



Try to open buttonhandler.php in text editor to see what / character on line 102 might be causing this issue.


I checked the buttunhandler.php and didn't see any character(see image).


So I ran a full build in phprunner and uploaded then got the following error.

-----------------------------------------------------------------------------

<br />

<b>Fatal error</b>: Class 'RunnerPage' not found in <b>/home/kriswa5/public_html/test/include/commonfunctions

.php</b> on line <b>926</b><br />

-----------------------------------------------------------------------------
I check the commonfunction.php on line 926 and still nothing.(see image).


Thanks

Bob

Sergey Kornilov admin 9/7/2015

This doesn't make much sense to me. I would suggest the following:

  1. Whatever version of PHRunner you run - make sure you running the latest build. Reinstall it just in case.
  2. Perform a full project build and test it locally first using built-in web server
  3. Once you got it working upload all files to the web server

bobdutil author 9/7/2015



This doesn't make much sense to me. I would suggest the following:

  1. Whatever version of PHRunner you run - make sure you running the latest build. Reinstall it just in case.
  2. Perform a full project build and test it locally first using built-in web server
  3. Once you got it working upload all files to the web server


I'm using the Version 8.0 Enterprise Build 22701. Thanks for your help. I'll give that a try and update the post with the results.

Sergey Kornilov admin 9/8/2015
bobdutil author 9/9/2015

I finally figured out that the problem was in my lengthy stored procedure and not with phpRunner.
Thanks for your help.
PS: I just upgraded to 8.1
Bob