Listview custom action problem with "Select All"

Hi, All!

I try to create custom action in listview using this arcticle
http://blog.innovsystems.com/sugarcrm/how-add-your-own-listview-action-items

And it almost works. If I use “Select All Records”, in

$_REQUEST['uid']  

I have only first 20 records.

Have any ideas?

Thanks!

I don’t know the answer, but I know that I have seen it before!

I have also used that bit of code a few months ago (but not any more). I remember seeing some site where people were asking your same question, and there was some solution there, try Googling a bit more.

1 Like

I found some comments here

https://web.archive.org/web/20150727073955/https://developer.sugarcrm.com/2010/11/22/howto-adding-your-own-listview-action-items/

And people speak about $_SESSION

“Currently just grabbing the searches where clause from $_SESSION, but was curious if there’s a better way”

“Grabbing the query field in $_SESSION seems to be the only solution.”

but I don’t found all ids in $_SESSION, too

My problem is massupdate working so slow, and i want create tasks in the queue
So the way I see is create new Action and asynchronous call javasript, but now new problem with “Select All”

May be some other solution?

Thanks

If you can group all your actions under one SQL UPDATE, it can be much faster. So if the situations are typical, like filtering for everything related to a Contact, and then mass updating that, then you can design your action around that same filter.

If, however, you want a completely generic update of whatever the user selects, then you have to do it like your trying now…

Good luck.