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!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...