Buy Now
Sign in

Help delete_group button

ieraora , January 19 2020, 10:22
I
ieraora 135
January 19 2020, 10:22 #390791
I created button for delete rows from Table View but it don't work. I think to have to add a Delete condition, but I don't know what insert.
I saw all demos but there isn't a example.
This is my configuration.
Views > Toolbar Button > Name: delete_selected_button > Event: delete_selected
Event delete selected > {fn:delete_orders_group} {success:articles deleted} {redirect:index}
Functions > Delete Data > Name: delete_orders_group > Delete conditions \ > Protect against full deletion checked
healyhatman 9
January 20 2020, 02:10 #390797
There is a demo, dynamic actions should include a delete button.
Make sure you're giving it an ID to delete
Web developer at SkySpider.com.au - I DO NOT work for ChronoEngine!
Donations: paypal.me/healyhatman
Professional Work: kamron@skyspider.com.au
Custom CF / CC Plugins and Extensions: skyspider.com.au/store
I
ieraora 135
January 20 2020, 04:48 #390799
delete button in demo is only for a row, I need for SELECTED articles, I tried to insert this condition - id/in:{data:gcb} (similar to publish_group function), but not work.
healyhatman 9
January 20 2020, 04:57 #390800
Is your select box called gcb? What does debug show?
Web developer at SkySpider.com.au - I DO NOT work for ChronoEngine!
Donations: paypal.me/healyhatman
Professional Work: kamron@skyspider.com.au
Custom CF / CC Plugins and Extensions: skyspider.com.au/store
I
ieraora 135
January 20 2020, 05:44 #390801
Sorry, If I insert id/in:{data:gcb} in conditions? I've error: 1054Unknown column 'id' in 'where clause'                      
healyhatman 9
January 20 2020, 07:26 #390802
That tells me your ID column isn't called ID
Web developer at SkySpider.com.au - I DO NOT work for ChronoEngine!
Donations: paypal.me/healyhatman
Professional Work: kamron@skyspider.com.au
Custom CF / CC Plugins and Extensions: skyspider.com.au/store
I
ieraora 135
January 20 2020, 08:01 #390805
Ops . Now go. My ID column is o_order_id, therefore I've change in o_order_id/in:{data:gcb}
RESOLVED. THANK YOU.
[div][div]
[/div][/div]