0

The error appears on my custom grid, where I do 'select all' for all my records (more then 3000) and try to go to the next grid page. As I can see, all my IDS are set into internal_import param of URL

/internal_import_ids/1,2,3,4,5,6,7,8,...

How can I put this internal_import_ids to POST, rather then to URL?

internal_import_ids declared in massaction section

...
$this->getMassactionBlock()->setFormFieldName('import_ids');
...
freento
  • 2,939
  • 4
  • 29
  • 53

2 Answers2

0

[Here is a thread] about the max URL length.(What is the maximum length of a URL in different browsers?)

Short answer - de facto limit of 2000 characters.

And here is more info from Boutell in their FAQ under the heading of “What is the maximum length of a URL?”:

Extremely long URLs are usually a mistake. URLs over 2,000 characters will not work in the most popular web browser. Don't use them if you intend your site to work for the majority of Internet users.

Community
  • 1
  • 1
Giacomo1968
  • 25,759
  • 11
  • 71
  • 103
0

One of the solutions I found, is to use AJAX. With AJAX Grid works nicely.

public function __construct()
{
    ...
    $this->setUseAjax(true);
}

So, my problem is solved. But if somebody will found the solution without AJAX - it will be nice to see it.

freento
  • 2,939
  • 4
  • 29
  • 53