Focal Point Banner
Community Center Education Summit Technical Support User Groups
Let's Get Social!

Facebook Twitter LinkedIn YouTube
Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] Adding drilldown javascript call
Go
New
Search
Notify
Tools
Reply
  
[CLOSED] Adding drilldown javascript call
 Login/Join
 
Member
posted
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
 
Posts: 20 | Registered: November 30, 2018Reply With QuoteReport This Post
Expert
posted Hide Post
Sean,

What should that JS function be doing?


   In FOCUS Since 1983 ~ from PC FOCUS to WebFOCUS.
   Currrently using 8204 Gen 48 in Test and Production.
   KGPCo at CenturyLink. October 2017 to Present...
 
Posts: 2758 | Location: Nashville TN Area [Test&Prod:8204Mg48] | Registered: February 23, 2005Reply With QuoteReport This Post
Member
posted Hide Post
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
 
Posts: 20 | Registered: November 30, 2018Reply With QuoteReport This Post
Virtuoso
posted Hide Post
This may help.


8.2.02M (production), 8.2.02M (test), Windows 10, all outputs.
 
Posts: 1056 | Location: USA | Registered: January 27, 2015Reply With QuoteReport This Post
Gold member
posted Hide Post
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)
 
Posts: 84 | Location: Oklahoma City, Oklahoma | Registered: July 01, 2010Reply With QuoteReport This Post
  Powered by Social Strata  
 

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] Adding drilldown javascript call

Copyright © 1996-2018 Information Builders, leaders in enterprise business intelligence.