Forums

Custom action don't have data

alopez 31 Mar, 2015
Dear all,

I have created a cutum action to show information from a row of the database in adifferent way of the default view acion and I added it in settings->links:
    data.first_name:http://www.web.es/test?cont=lists&ccname=name&act=cert&gcb={data.id}


The problem is that the information of the row of the database is not present:

<?php pr($this->data); ?>

Array
(
    [cont] => lists
    [ccname] => name
    [act] => cert
    [gcb] => 65
)

When I print in the view action, I have this information:

Array
(
    [data] => Array
        (
            [id] => 65
            [uniq_id] => 
            [user_id] => 0
            [created] => 2015-01-22 07:12:48
            [modified] => 2015-01-22 07:14:12
            [first_name] => alopez
            ....
        )

    [cont] => lists
    [ccname] => tma-backup
    [act] => view
    [gcb] => 65
)


Thanks in advance
Max_admin 01 Apr, 2015
Hi alopez,

Yes, the data is not available in custom actions, in this case you will have to point to a Chronoform event and use a "DB Read" action to read the record's data.

Regards,
Max
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
This topic is locked and no more replies can be posted.