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. ThanksThis 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
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.