All Apps and Add-ons

What is the use of URLLoader??

tkadale
Path Finder

For what purpose URLLoader module from SideViewUtils is used. Is it useful in passing value from one view to another view when we use redirection??

Tags (1)
0 Karma
1 Solution

sideview
SplunkTrust
SplunkTrust

Yes. See the examples and documentation in the Sideview Utils app.

In short,

  • you put Redirector in places where you would have used ViewRedirector in the old system. Typically you nest it inside a FlashChart module or a SimpleResultsTable module.

  • Redirector is configured with params like 'url', 'arg.foo', 'arg.baz'. The values for each can do $foo$ substitution, such that they can be set using any values passed down from upstream modules. For example, if you were setting the user arg to the value from a SimpleResultsTable:

    $click.value$

or if you're using the new SimpleResultsTable keys that Sideview Utils provides, you could do this:

<param name="arg.user">$click.fields.username$</param>   
  • Redirector then takes the user to ?myURL?user=bob&foo=fooValue

  • URLLoader then makes all keys available for downstream modules.

  • when the view loads, Pulldown, TextField and Checkbox will preselect themselves to the variable whose name matches the value of their name param. ie ?user=bob becomes a selection of 'bob' in the Pulldown that has

    user

But read the documentation and the examples - this is only a brief summary of the simplest case. -

View solution in original post

sideview
SplunkTrust
SplunkTrust

Yes. See the examples and documentation in the Sideview Utils app.

In short,

  • you put Redirector in places where you would have used ViewRedirector in the old system. Typically you nest it inside a FlashChart module or a SimpleResultsTable module.

  • Redirector is configured with params like 'url', 'arg.foo', 'arg.baz'. The values for each can do $foo$ substitution, such that they can be set using any values passed down from upstream modules. For example, if you were setting the user arg to the value from a SimpleResultsTable:

    $click.value$

or if you're using the new SimpleResultsTable keys that Sideview Utils provides, you could do this:

<param name="arg.user">$click.fields.username$</param>   
  • Redirector then takes the user to ?myURL?user=bob&foo=fooValue

  • URLLoader then makes all keys available for downstream modules.

  • when the view loads, Pulldown, TextField and Checkbox will preselect themselves to the variable whose name matches the value of their name param. ie ?user=bob becomes a selection of 'bob' in the Pulldown that has

    user

But read the documentation and the examples - this is only a brief summary of the simplest case. -

Get Updates on the Splunk Community!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...