All Apps and Add-ons

Problem with having Buttons with Redirector inside Table module

cmak
Contributor

Here is a sample XML that displays a table and with a "button" in each row for the Action column

<module name="Table">
  <module name="Button" group="row.fields.Action">
    <param name="label">Info</param>
    <param name="allowAutoSubmit">False</param>
    <module name="Redirector">      
      <param name="url">URL</param>
      <param name="popup">True</param>
      <param name="arg.A">$row.fields.A$</param>
    </module>
  </module>
</module>

With this code, I need to click each button twice in order to launch the popup. The first time clicking a button gives me the following line in the console.

Splunk.Module.Redirector.onContextChange() called but page is still loading. Aborting redirect. 

If I have True, then the popup only takes one click to launch. This is because the "console msg" is being rendered for each button that shows up when the table first renders. For example, If a table has 30 rows, this message is rendered 30 times.

This is not really a problem in Chrome and Firefox. However, having 30 of these buttons in IE8 causes the page to crash (JS is overloaded).

I was wondering what is the problem

P.S. Is there any way to display the new page in something other than a popup (Docs say no)? Setting target parameter as "_blank" still displays it as a popup instead of a new tab. I know the user can control click, but this is not preferable

1 Solution

sideview
SplunkTrust
SplunkTrust

Indeed this was a bug and it was fixed in the latest Sideview Utils release (2.4.6), although the release only just came out so you didn't miss it or anything.

Incidentally in addition to affecting Redirector modules embedded in Table rows, it also affected Redirector modules that you "multiplexed" with the Multiplexer modules.

Sorry for the inconvenience and thanks for reporting the problem.

http://sideviewapps.com/apps/sideview-utils/

View solution in original post

sideview
SplunkTrust
SplunkTrust

Indeed this was a bug and it was fixed in the latest Sideview Utils release (2.4.6), although the release only just came out so you didn't miss it or anything.

Incidentally in addition to affecting Redirector modules embedded in Table rows, it also affected Redirector modules that you "multiplexed" with the Multiplexer modules.

Sorry for the inconvenience and thanks for reporting the problem.

http://sideviewapps.com/apps/sideview-utils/

sideview
SplunkTrust
SplunkTrust

I found and fixed this additional bug. It was a general bug in the Table embedding code but it only came out on IE, and only if a pretty short list of modules was embedded - notably Button. Thanks again for the bug report. The fix will be in the next release - currently slated to be 2.4.7, probably coming out next week.

0 Karma

cmak
Contributor

I have seen another bug caused by 2.4.6 in IE8 (IE8 just sucks). When the table is first loaded, it is great. However, whenever there is a change upstream (such as a pulldown selection) and the table is reloaded, none of the buttons show up anymore. It is an empty column.

Chrome and Firefox are good though 🙂

0 Karma
Get Updates on the Splunk Community!

Introducing Splunk Enterprise 9.2

WATCH HERE! Watch this Tech Talk to learn about the latest features and enhancements shipped in the new Splunk ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...