Hi. I'm using Views Dynamic Fields for a view that has about 58 fields, and I'm running into URL length limitations (especially IE, which only allows URLs of around 2K characters.) I've hacked the source so that not quite so many URL parameters are passed, but it would be great if it worked without modifications. Maybe some of the repetition could be eliminated? Or maybe it's not necessary to include so much information? Just some ideas. Thanks!

Comments

jrz’s picture

Hi jjwhitney,

I'm running to the same problem. The funny thing is that if you refresh the page in IE it works. Which part did you end up hacking?

Much appreciated

jjwhitney’s picture

Sorry about the delay. I don't check the forums often these days. Here's the note I wrote (to myself) so that I wouldn't forget what I had changed. Seems pretty straightforward:

In views_handler_filter_dynamic_fields.inc, remove this:

// TODO: Why is the default selection list not showing up here? (no sortability)
if (!$this->options['checkboxes'] && !$exposed_input_fields) {
    $form['value']['#value'] = $field_names_defaults;
}

Also, change the 2 calls to serialize() to "". We don't need these URL parameters, and including
them causes the URL to be too long for IE.

jrz’s picture

Hi jjwhitney,

Thanks, as for the calls which ones are these?

donSchoe’s picture

Issue summary: View changes
Status: Active » Postponed (maintainer needs more info)
donSchoe’s picture

Version: 6.x-1.4 » 7.x-1.x-dev
Status: Postponed (maintainer needs more info) » Needs work

This needs to be fixed in 7.x

donSchoe’s picture

Title: Reduce usage of URL parameters » Reduce usage of exposed filters URL parameters
Project: Views Dynamic Fields » Views (for Drupal 7)
Version: 7.x-1.x-dev » 7.x-3.x-dev
Component: Code » exposed filters
Status: Needs work » Closed (won't fix)

I can't fix this right now. The whole URL logic comes from the way how exposed filters work.
If any of you come through this issue again, I suggest, reopening this ticket for the views project.