Focal Point
[CLOSED] HTML Tabitem

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

April 26, 2014, 04:06 PM
MMcDonald
[CLOSED] HTML Tabitem
I have an html page I created in html painter that has two tabs. on the first tab when I execute the report there is a drilldown that updates a report on the second tab. is there a way to automatically open the second tab once the user clicks the drilldown report on the first tab.
Thanks

This message has been edited. Last edited by: <Kathryn Henning>,


8.0.9, Windows
excel / pdf
April 28, 2014, 08:02 AM
MartinY
Why not opening the drilled report in a new window instead ?


WF versions : Prod 8.2.04M gen 33, Dev 8.2.04M gen 33, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF
In Focus since 2007
April 28, 2014, 09:04 AM
BarryS
Hi MMcDonald

If you are in WebFOCUS 77 try the following:

Syntax: How to Select a Tab and Make It Active:

IbComposer_selectTab('tabControlID', tabNumberToSelect);
where:

tabControlID ~ Alphanumeric

Is the unique identifier of the tab control being made active.

tabNumberToSelect ~ Integer

Is the number of the tab to make active.

There are other API Functions that are available that will be helpful. Go to HELP ==> Index and search on "IbC"


Being that you are on WebFOCUS 764 then you will need to use:

document.getElementById('tabitem2').click();

Thanks Barry


WebFOCUS 8103, Windows, App Studio
May 01, 2014, 01:35 PM
J
How are you updating your report on the second tab? Can you show us the drilldown code?


WebFOCUS 7.7.03/8.0.08
Dev Studio 7.7.03/8.0.08
App Studio 8.0.08
Windows 7
ALL Outputs
May 02, 2014, 09:55 AM
BarryS
Hi J

When you have a drill down you can specify the target as the report name or iframe name. You can also have a JavaScript drill down in the report and have it call a JavaScript function that executes a report in a frame. If this does not answer your question, please open a case with Tech Support and we will work with you.

Thanks Barry


WebFOCUS 8103, Windows, App Studio
May 02, 2014, 02:16 PM
J
Thanks Barry, I meant to target my question at MMcDonald, but I think your answer to my question answers his question.

MMcDonald, I would do as Barry said. Use a javascript drilldown to execute the report in the page and in that same javascript function click on the tab so that it shows up. One drilldown javascript function, multiple executed actions. You can use the syntax that Barry provided earlier to accomplish this.


WebFOCUS 7.7.03/8.0.08
Dev Studio 7.7.03/8.0.08
App Studio 8.0.08
Windows 7
ALL Outputs
May 27, 2014, 06:34 PM
Francis Mariani
I'm curious as to why IbComposer_selectTab requires both a Tab ID and a number? What is this number? I can't make this API call work.

IbComposer_selectTab('tabControlID', tabNumberToSelect);

This message has been edited. Last edited by: Francis Mariani,


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
May 28, 2014, 07:33 AM
J
I don't think it is a tab id but rather the id of the entire control. The number is the tab number (1,2,3...)


WebFOCUS 7.7.03/8.0.08
Dev Studio 7.7.03/8.0.08
App Studio 8.0.08
Windows 7
ALL Outputs