Issue with list filter and PDF

henk

Member
I have 2 lists; for both I use the related-data link to open another list.
So the other list now displays only the records filtered by the record of the first list.
This works perfectly for both, except if I display PDF:
for one list the PDF exactly shows the filtered records, but on the other list all records are shown on the PDF.

So it seems that for one list the PDF is rendered using the listfilter and for the other list it is not.
I could not find any differences in the lists settings.

Anyone has a suggestion ?
 
No none is ajaxfied
Menu option exactly the same.
btw The other list is opened by the related data link, not by the menu.

Another strange thing I see is that the search box looks different between lists:
List with no issue
Capture-ok.PNG
List with issue
Capture-problem-list.PNG
 
OK, I understand why search boxes are different.

It seems that the list filter is not always applied before PDF is rendered.
So far I could not find where data for the PDF is fetched.

Realy pull my hair out...
 
I can recall issues with related data filtering (losing the filter on navigation etc), there must be some threads.

What are the exact PDF links in your lists (URL params)?
Is your FK element a filter element in both lists?
btw The other list is opened by the related data link, not by the menu.
The "original" menu setting may still be applied.
 
Well.. ,getting near. Thanks for this tip.

I checked the URL, and they looked simular; both ended with: fabrik_incsessionfilters=0
Then for the list with the problem I changed fabrik_incsessionfilters=1 and voila solved!

Now my 2 questions are:
- why does fabrik_incsessionfilters=0 not cause a problem with the other list ?
- where / how is fabrik_incsessionfilters set ?
 
OK, incsessionfilters is set 0 in components/com_fabrik/models/list.php on line 2277.
If I comment this out, all is working well for both lists.
incsessionfilters set or unset only seems to cause a problem on one list and not the other, which I don't understand
For one list it can be set or unset; no difference
Unclear why incsessionfilters is set 0 here.
My guess would be always to have the session filters if you use related data.

Should the FK element be a filter element in both lists or is this causing the problem?
Do you mean the databasejoin element?
 
We are in need of some funding.
More details.

Thank you.

Members online

No members online now.
Back
Top