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!

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

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...