$this->get('tableName.row.Model.field') should definitely work. If it doesn't, try just print_r($this->get('tableNameGoesHereDontLiterallyTypeThis.row')) see what the data shows.
where do you call the PHP code and how ?
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
I am using HTML block with 'Run PHP' in Advanced settings.
Also trying var_dump($this->get('list.row')); returns NULL. In the PHP code it just getting the first row.
what is the name of your "Read Data" ? to get the name you need to move the mouse over the "Read data" action label, it will appear in a tooltip
Then use that name in the get() function call!
"list" will not return anything unless it's the name of the Read data!
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
in v7 you get the data from the "Read data", you should try:
$this->get('read_banners')
but inside the table row you can use {var:Model.field_name}
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
Using $this->get('read_banners') gives me the entire data from the database. I want the data from the current row so I can do calculations on that data. Currently, I have no way of getting the current row's data
if you want to get the current row data inside the table then use {var:Model.field} or $this->get("Model.field") inside the HTML view!
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
As I said, in the PHP that always just returns the first row which you can see from the first line in the boxed text in my above screenshots. That is using the PHP code var_dump($this->get('Banner.name'));
Hi Max
As grantdigital pointed out, $this->get("Model.field") inside the HTML view with PHP enabled prints the first row data in all all rows of a Table List column in Chronoform 7.0.2
Hi grantdigital,
could you find a solution to this?
So I just checked with v7.0.4 and I still have the same issue.
Has no dev even checked this as no hard to replicate the issue.
this should be fixed in 7.0.5
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
hello to all involved in this conversation- has anybody resolved this? If yes, could you type the guidlines on how to call a PHP function in the table list?
You can not call an action in the table view, you may add an HTML view and inside that enable the PHP support behavior!
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
No, sorry Max, I cannot. Actually I cannot do nothing in table views since there is a bug.
in Connectivity form in table list only FIRST (built-in) table column works. In other you cannot do NOTHING!!!
Please, fix this ASAP.
fixed in the next update!
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?