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!
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!
This topic is locked and no more replies can be posted.