Dashboards & Visualizations

Can we use our own costume javascript except form setup.xml?

amolp07
New Member

I want to use my own written java script except form setup.xml in Technology Add-on(Moduler Input).
I want to update setup.xml dynamically.
Is this possible?
please late me know if is there any way to achieve this? or alternative way

Thanks in advance.

0 Karma
1 Solution

kamlesh_vaghela
SplunkTrust
SplunkTrust

@amolp07

You can create YOUR_APP/appserver/static/application.js and write your logic in this file. But you have to take care in your javascript logic development style.

application.js is automatically called in setup.xml so no need to include. But as there is auto-inclusion of application.js we have to take care that your logic in javascript, like executing code only if some element found on page load. Just try and let me know if any issue.

Thanks

View solution in original post

0 Karma

kamlesh_vaghela
SplunkTrust
SplunkTrust

@amolp07

You can create YOUR_APP/appserver/static/application.js and write your logic in this file. But you have to take care in your javascript logic development style.

application.js is automatically called in setup.xml so no need to include. But as there is auto-inclusion of application.js we have to take care that your logic in javascript, like executing code only if some element found on page load. Just try and let me know if any issue.

Thanks

0 Karma
Get Updates on the Splunk Community!

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 ...

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...