Hi All,
I am making a custom flashtimeline dashboard with side-view util. The page loads perfectly, But i cannot search on it. Its dont do anything.
It will work once I remove
module="SuggestedFieldViewer"
Can't figure out the reason or any solution.
Can anyone please help ?
Thanks in Advance
<view autoCancelInterval="90" isPersistable="true" isSticky="false" isVisible="true" objectMode="viewconf" onunloadCancelJobs="true" stylesheet="custom.css" template="search.html">
`
It's because of a bug in SuggestedFieldViewer. If you don't define the 'exclude' param, then it throws an exception. (It would be very easy to fix the bug so hopefully someone will notice this answer and file something to fix it).
In the meantime you can just be careful with the SuggestedFieldViewer params.
For instance here's the config that flashtimeline itself uses and if you replace your <module name="SuggestedFieldViewer" />
with this, it'll work.
<module name="SuggestedFieldViewer">
<param name="minDistinctCount">1</param>
<param name="minFrequency">0.5</param>
<param name="maxFields">50</param>
<param name="exclude">
<list>^date_.*</list>
</param>
<param name="link">
<param name="view">report_builder_format_report</param>
</param>
</module>
It's because of a bug in SuggestedFieldViewer. If you don't define the 'exclude' param, then it throws an exception. (It would be very easy to fix the bug so hopefully someone will notice this answer and file something to fix it).
In the meantime you can just be careful with the SuggestedFieldViewer params.
For instance here's the config that flashtimeline itself uses and if you replace your <module name="SuggestedFieldViewer" />
with this, it'll work.
<module name="SuggestedFieldViewer">
<param name="minDistinctCount">1</param>
<param name="minFrequency">0.5</param>
<param name="maxFields">50</param>
<param name="exclude">
<list>^date_.*</list>
</param>
<param name="link">
<param name="view">report_builder_format_report</param>
</param>
</module>
The problem is that you guys are using <item>
. Note that <item>
is not what I said in my answer and indeed <item>
is not supported by the advanced XML. Replace it with <list>
and you'll be fine.
I found a really lame work-around. Replace the
<param name="exclude">€</param>
The buggy javascript will try to use whatever you have between
This solution means that you'll see date_ in the suggested field viewer. But eh.
Can you unmark this answer as accepted @KarunK?
I can confirm that this does not fix the problem. There does indeed seem to be a bug in SuggestedFieldViewer, but adding the exclude does not seem to make a difference.
Worth pointing out: the block that is not working is copied from flashtimeline's source. If you use simply:
you get a different error but params["exclude"] is indeed set. I have a feeling that
Thanks for that. Really Appreciate that. It worked. But strangely I have tried the same params in different order. But didn't work. So the params has to be listed in the same order shown above.
Param listing order which DIDN'T WORKED is as below.
.......NOT WORKING......