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!

Take Your Breath Away with Splunk Risk-Based Alerting (RBA)

WATCH NOW!The Splunk Guide to Risk-Based Alerting is here to empower your SOC like never before. Join Haylee ...

SignalFlow: What? Why? How?

What is SignalFlow? Splunk Observability Cloud’s analytics engine, SignalFlow, opens up a world of in-depth ...

Federated Search for Amazon S3 | Key Use Cases to Streamline Compliance Workflows

Modern business operations are supported by data compliance. As regulations evolve, organizations must ...