Popup from toolbar button

rjeffl 26 Feb, 2019
Struggling a bit to find a solution here...

I have a table that displays a list of projects, and I am using the select box feature to allow one or more projects in the list to be selected.
The goal is to be able to delete multiple projects at once, based on the selection.
Using the standard toolbar button, I have no problems grabbing the gcb array and deleting the selected projects or performing other actions based on the selection list.

However, I really need to have a popup to confirm the delete. Unfortunately the toolbar button does not have any built-in provisions for creating a popup.
Though I could vector off to an intermediate form, I lose the table display. So, a popup over the table is the best solution.
I have looked at using a task button instead of a toolbar button, but I cannot seem to find a way to get the posted gcb array from my selection list via the task button.

Any ideas as to how this could be accomplished using the existing tool set in v6?
healyhatman 26 Feb, 2019
Use a task button, set to open a popup, and put the delete button inside it (in "popup content")
rjeffl 26 Feb, 2019
Thanks, but unfortunately I have already tried this.
As I mentioned in the OP, the task button does not provide the gcb array which contains the ids of the selected rows.
Got to have some form of this array to do any type of multi-record operation.
It would seem that the toolbar button does a form submit and returns this array as posted data.

Any way to get the task button to do a form submit and return this array?
healyhatman 26 Feb, 2019
Your toolbar button needs to be a submit button, and "list view name" should be the name of your table you're getting the selections from.
Popup from toolbar button image 1
rjeffl 27 Feb, 2019
Ohhhh! Missed that part.
That works. Thanks!!!

Now, for some reason, the first time I click the task button, the popup is empty and displays above and and partially off screen.
The second time I click the task button, the popup appears underneath and is centered with the correct contents.
Any way to control this behavior?
healyhatman 27 Feb, 2019
Not off the top of my head sorry.
This topic is locked and no more replies can be posted.