This topic is locked
[SOLVED]

 getCurrentRecord vs getNextSelectedRecord

9/8/2014 1:34:03 PM
PHPRunner General questions
I
ISelb author

I have a list page where I have constructed a link for each record that takes the user to the edit page when clicked.

On this edit page, I have constructed a button to perform a specific action.

The first line on the "Server" tab of the button is:

$data = $button->getCurrentRecord();


I want to do the same action on the list page but for each record the user has selected.

I've created another button on the list page to do this.

For this button, I have copied the "Server" button code from above and changed the first line to:

$data = $button->getNextSelectedRecord();


For initial test purposes, I am only selecting one record on the list page.
I receive a debugger error from processing the button on the list page.

From Chrome Debugger:

Line 1, Column 1
ConsoleSearchEmulationRendering
Uncaught SyntaxError: Unexpected token < RunnerAll.js:232

(anonymous function) RunnerAll.js:232

o loadfirst.js:2

p.fireWith loadfirst.js:2

w loadfirst.js:2

d loadfirst.js:2


Since I can't get my test example of one record selected to work, it means I can't get multiple selected records to work.
Can anyone contribute insight/knowledge/solution that could help me out?

Sergey Kornilov admin 9/8/2014

Check one of PHPRunner examples from the manual:

http://xlinesoft.com/phprunner/docs/update_multiple_records.htm
If more help is required 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.