Forums

How to use the Delete toolbar?

goliath 25 Jun, 2015
I use the _DELETE_ function in my CC listing. This works fine (the record is deleted).
Now I try to use the _TOOLBAR_DELETE_ in combination with the _SELECTOR_ function. I assumed that this button would delete the selected record, but nothing happens. So, what am I doing wrong?
Max_admin 03 Jul, 2015
It should work too, do you have the latest update of CC installed ?
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
goliath 13 Jul, 2015
The installed version of ChronoConnectivity is 5.0.2
Max_admin 10 Aug, 2015
Hi Geert,

There is a code version which you can use instead, its noted under the "Help" tab, please post a reply if you can't get it to work, you need to pass the action's name and that would be "delete".

Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
goliath 10 Aug, 2015
Hi Max

I think this is the code you mean:

$this->view->Toolbar->renderButton("button_id", "link_href", "TEXT", "image_path", "submit_selectors");


But I don't have any clue on what to fill in where?
Max_admin 14 Aug, 2015
button_id: can be any thing, say "delete"
link_href: the link to your listing and add "&action=delete" to the end.
image_path: the link to the button's image if you need one.
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
goliath 14 Aug, 2015
Hi Max

I don't need an image_path. The link to my listing is "index.php?option=com_chronoconnectivity5&view=connection&Itemid=1322"

So I do the following:

I go to "Front List > List Display > Table"
In Footer code I put the following:

<?php $this->view->Toolbar->renderButton("delete", "index.php?option=com_chronoconnectivity5&view=connection&Itemid=1322&action=delete", "Delete selection", "", "submit_selectors"); ?>


In the frontend I can't see anything. Not even a button.

If I put _TOOLBAR_DELETE_in the footer, I can see a delete button, but after selecting some records nothing happens when I click on it.
macgyver 15 Oct, 2015
I have exactly the same problem... Can't figure out how to solve it. I tried many things without any success.
Max_admin 16 Oct, 2015
1 Likes
Hi,

Just tested this, do you have a search button in your header ? if you do then the button's name should not = "submit", when its, the toolbar buttons will not work.

Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
macgyver 17 Oct, 2015
Yes I have ! And that makes sense... Let me try...
macgyver 17 Oct, 2015
I renamed the search button and ... it works !
I'll not have got this on my own I think .

Thanks Max.
This topic is locked and no more replies can be posted.