Access to first element of array returned by "read data"?

2D77rus 04 Jun, 2019
Say I have a fairly complex function which reads data from dozen models and returns all matching rows. I use them to make a list of records.
Now I want to create a separate event with a form, to edit one record. This form should use all same models, but only one record. I'd like to use the same function to read data and read its first record only, rather then duplicate the whole function with select type of "one matching record".
In other words, I need something like {var:read_data1[0].Model1.field1} - is it somehow possible?
Thanks!
samir1903 04 Jun, 2019
try
{var:read_data1.[0].Model1.field1} and {var:read_data1[0]Model1.field1}
This topic is locked and no more replies can be posted.

VPS & Email Hosting 20% discount
hostinger