All Apps and Add-ons

Is ViewstateAdapter needed with Sideview Utils?

Lowell
Super Champion

Is the usage of the ViewstateAdapter module needed or recommended for view that use the Sideview Utils modules?

I did a quick search and didn't find any uses of ViewstateAdapter in any of the examples:

fgrep  ViewstateAdapter ~/etc/apps/sideview_utils/default/data/ui/views/*.xml

No matches. I'm guessing that means that we don't need this module?

0 Karma
1 Solution

sideview
SplunkTrust
SplunkTrust

Nope, you dont need it. ViewStateAdapter shows up a lot because it gets used by the Simplified XML internally, and thus when people begin their foray into Advanced XML by converting a view from the Simplified XML, that and a bunch of other cruft gets carried along with it.

You can safely remove it. For the record what it does is look for information that a HiddenSavedSearch module upstream might have written into the context. If it's there, and basically if that saved search has a viewstate associated with it, it will reconstitute some of the keys from that viewstate. like chart type and stackmode and things like that.

View solution in original post

sideview
SplunkTrust
SplunkTrust

Nope, you dont need it. ViewStateAdapter shows up a lot because it gets used by the Simplified XML internally, and thus when people begin their foray into Advanced XML by converting a view from the Simplified XML, that and a bunch of other cruft gets carried along with it.

You can safely remove it. For the record what it does is look for information that a HiddenSavedSearch module upstream might have written into the context. If it's there, and basically if that saved search has a viewstate associated with it, it will reconstitute some of the keys from that viewstate. like chart type and stackmode and things like that.

Lowell
Super Champion

Good to know. This was very helpful, thanks!

0 Karma
Get Updates on the Splunk Community!

Detecting Remote Code Executions With the Splunk Threat Research Team

WATCH NOWRemote code execution (RCE) vulnerabilities pose a significant risk to organizations. If exploited, ...

Enter the Splunk Community Dashboard Challenge for Your Chance to Win!

The Splunk Community Dashboard Challenge is underway! This is your chance to showcase your skills in creating ...

.conf24 | Session Scheduler is Live!!

.conf24 is happening June 11 - 14 in Las Vegas, and we are thrilled to announce that the conference catalog ...