Use task button in a list

Pass dynamic values in a ChronoForms task button within a table view.

Overview

The issue occurs when using a task button in a table view, as the variable name is passed instead of its actual value.
Use the correct variable syntax for the table context by specifying the table name, row, model, and field in the URL parameter.

Answered
Connectivity v6
we webcrea 22 May, 2017
Hi,

I created a task button with :

URL and/or URL parameters : order_product_id=o_product.order_product_id

In view the result is

Array
(
[option] => com_chronoconnectivity6
[cont] => manager
[conn] => crmhikashoporders
[orderfld] => o_order_order_id
[orderdir] => clear
[startat] => 30
[order_product_id] => o_product.order_product_id
[event] => view
)

I would want the value and not the name of the var

thanks
Max_admin Max_admin 22 May, 2017
Hi Chris,

Then you should use:
order_product_id={var:o_product.order_product_id}


But I'm not sure what is "o_product.order_product_id"

Best regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
we webcrea 22 May, 2017
thanks Max
I just found it ;-)
Regards
we webcrea 22 May, 2017
I just found because i'm using repeaters but in table format it doesn't work...

It seams to miss something the var appears only in the list

order_product_id={var:o_product.order_product_id} is empty
Max_admin Max_admin 24 May, 2017
Hi Chris,

In which context is this parameter ? if its inside a repeater then you need to use this:
{var:repeater_name.row.model.field}

Please try that and let me know if it does not work and i will check it myself.

Best regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
we webcrea 24 May, 2017
Hi,

In repeater i succeded to display the button with the id in the link but i would want to do that in table view.

Thanks
regards
Max_admin Max_admin 24 May, 2017
Answer
Hi Chris,

Its the same code, but change "repeater_name" to "table_name"

Best regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
we webcrea 29 May, 2017
1 Likes
Ok Max

Le but : Afficher un bouton à la fin de chaque ligne qui ouvrira une vue en passant l’id de la ligne à traiter.

Dans une [Views][List]{table} créer une table nommée « table_orders »
Columns list : link:Enroll
Columns views : link:{view:task_enroll_list}

Créer un [Elements]{Task button} nommé « task_enroll_list »
Event : view (la vue dans laquelle on cherche à passer la variable)
Content : Enroll {var:table_orders.order_product_id}
URL and/or URL parameters : o_p_id={var:table_orders.row.o_product.order_product_id}

Pour mémoire...
Thanks
This topic is locked and no more replies can be posted.