Focal Point
[CLOSED] Adding drilldown javascript call

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/8977099096

December 21, 2018, 02:57 PM
Sean Sweeney
[CLOSED] Adding drilldown javascript call
Hi,

I'm trying to add a drilldown which will call a JS function. I've setup the drill down and added my function to the embedded JS.

When I click on the appropriate link which should engage the function nothing happens. When I view my browser console I see the following:

"Uncaught TypeError: MDitemClickJQ is not a function"

Reviewing the generated html the link has an href like so:

"javascript:if(typeof(MDitemClickJQ)!='function')MDitemClickJQ=parent.MDitemClickJQ;MDitemClickJQ(0,'0','');"

Looking for this MDitemClickJQ through all frames on the page I can't seem to find it anywhere. I didn't create it.

Thoughts? Anyone run into this?

This message has been edited. Last edited by: FP Mod Chuck,


Windows 8203 All output formats
December 26, 2018, 10:32 AM
Doug
Sean,

What should that JS function be doing?




   In FOCUS Since 1983 ~ from FOCUS to WebFOCUS.
   Current: WebFOCUS Administrator at FIS Worldpay | 8204, 8206
January 02, 2019, 09:37 AM
Sean Sweeney
Good Morning Doug,

The function that I created is just firing a simple alert for now - just a proof of concept that I'm calling things properly.

The MDitemClickJQ I didn't create, not sure what it is supposed to be doing.

Thanks for your help.


Windows 8203 All output formats
January 03, 2019, 03:41 PM
CoolGuy
This may help.


8.2.02M (production), 8.2.02M (test), Windows 10, all outputs.
January 04, 2019, 02:07 PM
SeyedG
Sean,
I tried the following steps in App Studio 8009 and they worked for me. Try these in your version and see if they work for you.

1. Create an HTML page
2. Add a drop-down control
3. In the setting for the drop-down (combobox1), add two separate web sites and their displayed names
4. In the onchange event of combobox1, added the following 3 lines of code for testing the page
	alert (document.getElementById("combobox1").selectedIndex);
        var values = IbComposer_getCurrentSelection('combobox1');
        alert (values);
        

5. Run the HTML page and then clicking on an item in the drop-down


WebFOCUS 8.0.09
App Studio 8009
Linux Kernel-2.6
DBMS: Oracle 11g
all output (Excel, HTML, AHTML, PDF)