This topic is locked

getCurrentRecord always brings data of the first row

5/7/2020 10:26:19 AM
PHPRunner General questions
K
kohle author

Table: Customview, user can only list.

Designer: At the beginning of a row I added a button.

In the Server event I use

$record = $button->getCurrentRecord();

$id=$record["id"];

to get a table field (autoincr.).
But the value is always from the first row.
With an other table no custom view it works fine
What can this be.

Sergey Kornilov admin 5/7/2020

Just in case make sure you have selected a proper key column for this table. Key column values must be unique for each row.