Get the array of Read data action in PHP action

cambium 20 Jun, 2018
Hello!
I have the Read Data element (it makes select from two related tables) inside the load event.
If select was successfuly, i have the some array.
In the Message element i can get it using shortcode, but i don't know how to get the same array with php code.
Tell me, please, what the syntax i can use to get the full array of my read_data31.

Get the array of Read data action  in PHP action image 1

Many thanks for answer
cambium 21 Jun, 2018
Hi, Bob!
I tryed with
$this->data("read_data31", "some def val");
and with
$this->get("read_data31", "some def val");
before this topic creation.
I get the null always, but in these time the message element using shortcode return this listing of array
cambium 21 Jun, 2018
Oh, i get it!
It works with
$this->get("read_data31", "default");
Maybe my code had an error before. Now all it works perfectly.

Bob, thanks you a lot!
michaelFFW 10 Dec, 2018
Sorry posted to wrong comment.
Kronosites 01 Dec, 2019
Hi,

I'have more or less the same problem and even reading the FAQ it doesn't work.
This is my debug with data obtained from read_data action (array in read_data1):

Get the array of Read data action  in PHP action image 2

Using shortcodes works like this:
{var:read_data1.db.created}
{var:read_data1.db.CO_PACIENTE}
{var:read_data1.db.S02P1_DT_NACIMIENTO}

But I cannot find the correct way to acces data using php.

I've tried all of this, and always returns null:
$this->data("CO_PACIENTE","default")
$this->data("read_data1.db.CO_PACIENTE","default");
$this->data('db["CO_PACIENTE"]',"default");
etc.

Could you help me please to use the correct way to acces this data in php?
Thanks
This topic is locked and no more replies can be posted.