Upgrade to 3. Actions in detail tab

39 views
Skip to first unread message

Antonio Venneri

unread,
Oct 27, 2022, 4:31:56 AM10/27/22
to Xataface
I am upgrading to Xataface 3

In previous version I create some actions in actions.ini file and related class to create a PDF print button using mpdf.

In xataface 3 I see the action in list tab 
Immagine 2022-10-27 102936.png

 but is missing in detail tabdetail-tab.png
Here the conf of actions.ini file

[stampa_soci_gruppi]
category=table_actions
condition="$query['-table'] == 'SOCI'"
icon="../dataface/images/printer.png"
description="Stampa lista elenco Soci"
url="{$app->url('-action=soci_list_report')}"
order=11

[stampa_testo_libero]
category=table_actions
condition="$query['-table'] == 'SOCI' || $query['-table'] == 'DEFUNTI'"
icon="../dataface/images/page_white_acrobat.png"
description="Stampa Libera testo in PDF"
url="{$app->url('-action=free_pdf_report')}"
order=12

Any suggestion?

Antonio
Immagine 2022-10-27 102936.png

Antonio Venneri

unread,
Oct 28, 2022, 8:10:10 AM10/28/22
to Xataface
Solved.
duplicate action in actions.ini by using
Using category=record_actions

Antonio

Steve Hannah

unread,
Oct 29, 2022, 8:27:15 AM10/29/22
to xata...@googlegroups.com
Yeah.  Glad you found it.  With Xataface 3, I separated actions between the list view and details view to reduce noise.  Details view uses record_actions, and list view uses table_actions

--
You received this message because you are subscribed to the Google Groups "Xataface" group.
To unsubscribe from this group and stop receiving emails from it, send an email to xataface+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/xataface/ccbea5c2-b7e1-46db-8f00-5c53aeb10d0en%40googlegroups.com.


--
Steve Hannah
Web Lite Solutions Corp.
Reply all
Reply to author
Forward
0 new messages