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!

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...

.conf24 | Learning Tracks for Security, Observability, Platform, and Developers!

.conf24 is taking place at The Venetian in Las Vegas from June 11 - 14. Continue reading to learn about the ...

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...