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.

Many thanks for answer
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.

Many thanks for answer
Hi, Bob!
I tryed with
I get the null always, but in these time the message element using shortcode return this listing of array
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
Oh, i get it!
It works with
Bob, thanks you a lot!
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!
Sorry posted to wrong comment.
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):

Using shortcodes works like this:
But I cannot find the correct way to acces data using php.
I've tried all of this, and always returns null:
Could you help me please to use the correct way to acces this data in php?
Thanks
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):
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.