All Apps and Add-ons

ValueSetter Module with Url Loader Module

cmak
Contributor

I have some pulldowns that I would like to prepopulate. I would like to prepopulate my pulldowns based on the URL parameters. However, if there are no URL params, I would like to have a default value for the pulldowns so they are not empty. It seems like I should be using URLLoader with the ValueSetter module.

However, it seems that these two modules conflict with each other. The downstream module would take precedence.

If the URL loader is downstream from the Valuesetter module and no URL parameters are passed, then no pulldown selections will be made.

If the ValueSetter module is downstream from the URL Loader, then the default values will always be chosen.

Is there a way to fix this behavior?

1 Solution

sideview
SplunkTrust
SplunkTrust

This is what the allowClobber param is for, on the ValueSetter module.

Put your ValueSetter module downstream from the URLLoader and upstream from your Pulldown, give the ValueSetter the same "name" as the Pulldown, which is in turn the same name as the argument name from the URL. But set the 'allowClobber' param on the ValueSetter to "False".

This will mean that the ValueSetter will only send its value when there is no value coming from the URLLoader.

View solution in original post

sideview
SplunkTrust
SplunkTrust

This is what the allowClobber param is for, on the ValueSetter module.

Put your ValueSetter module downstream from the URLLoader and upstream from your Pulldown, give the ValueSetter the same "name" as the Pulldown, which is in turn the same name as the argument name from the URL. But set the 'allowClobber' param on the ValueSetter to "False".

This will mean that the ValueSetter will only send its value when there is no value coming from the URLLoader.

Get Updates on the Splunk Community!

Detecting Remote Code Executions With the Splunk Threat Research Team

REGISTER NOWRemote code execution (RCE) vulnerabilities pose a significant risk to organizations. If ...

Observability | Use Synthetic Monitoring for Website Metadata Verification

If you are on Splunk Observability Cloud, you may already have Synthetic Monitoringin your observability ...

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...