All Apps and Add-ons

IFrame module with dynamic url

synodineios
Explorer

Greetings Splunkers!
I have a sparkline table with a field called ref, which contains some links.When i click this ref field it opens a popup window that shows the relevant url.
I would like to do this using the IFrame module but i can't make it work properly.

Note:I can't put a specific url to <![CDATA[]]> because every time it's different!
Any thoughts are welcome 🙂
Here's a piece of my code :

results
row

$click.fields.ref$
True



<![CDATA[$click.fields.ref$]]>
402

1 Solution

synodineios
Explorer

Well i found it!
The way to do this is by adding an HTML module and place the iframe in it.

<module name="HTML" layoutPanel="panel_row3_col1">
        <param name="html"><![CDATA[
          <iframe id="theFreshMaker" name="theFreshMaker" src="$click.fields.ref$" height="500px" width="100%" style="border:0px;"></iframe>
        ]]></param>

      </module>

I took the idea from here : [http://192.168.252.20:9000/en-US/app/sideview_utils/refresh_entities][1]

View solution in original post

synodineios
Explorer

Well i found it!
The way to do this is by adding an HTML module and place the iframe in it.

<module name="HTML" layoutPanel="panel_row3_col1">
        <param name="html"><![CDATA[
          <iframe id="theFreshMaker" name="theFreshMaker" src="$click.fields.ref$" height="500px" width="100%" style="border:0px;"></iframe>
        ]]></param>

      </module>

I took the idea from here : [http://192.168.252.20:9000/en-US/app/sideview_utils/refresh_entities][1]

synodineios
Explorer

🙂 Thank you sideview for your great apps!Keep on with the "splunk" work!

sideview
SplunkTrust
SplunkTrust

😃 Cool. You beat me to it. Indeed the Sideview HTML module makes an excellent replacement for the IFrameInclude module, as well as several others.

Get Updates on the Splunk Community!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...