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!

Enterprise Security Content Update (ESCU) | New Releases

In November, the Splunk Threat Research Team had one release of new security content via the Enterprise ...

Index This | Divide 100 by half. What do you get?

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

Stay Connected: Your Guide to December Tech Talks, Office Hours, and Webinars!

❄️ Celebrate the season with our December lineup of Community Office Hours, Tech Talks, and Webinars! ...