This topic is locked

function OnServer($params,$result,$keys) $keys is

5/26/2011 4:13:58 PM
PHPRunner General questions
J
jpmagnan author

I have added a button to an Edit Page. The default code runs fine. According to the documentation of the onServer method:
Description

PHP code executed on the server side.
Parameters

$params - array of parameters sent from the client

$result - array of values to return from the server

$keys - array of keys values for selected records on the List page and key values

for view and edit pages
However when the $keys array is empty, count($keys); always returns 0. How do I access the values of the row being edited in the onServer method?

Sergey Kornilov admin 5/26/2011

Need to see your application to find what is wrong. I recommend to post your application to Demo Account and open a ticket at http://support.xlinesoft.com sending your Demo Account URL. 'Demo Account' button can be found on the last screen in the program.