As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.
Join the TIBCO Community TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.
From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
Request access to the private WebFOCUS User Group (login required) to network with fellow members.
Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.
I followed the example on page 313 of the Designing a User Interface for a Web Application With the HTML Composer manual, Version 7 Release 7.03 and I cannot get IbComposer_execute to work.
I added a button to a blank HTML page. I created an onclick event. I added execution of IbComposer_execute in the function for this event. Saved the file. Ran the file. Clicked the button - nothing happens.
//Begin function button1_onclick
function button1_onclick(ctrl) {
IbComposer_execute('dummyabc');
}
//End function button1_onclick
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
Yes, I was able to get this to work. I am actually getting the values and storing them into a hidden textarea, then I pass those values into a report fex that get executed.
//Begin function listbox2_onclick
function listbox2_onclick(ctrl) {
var values = IbComposer_getCurrentSelection('listbox2');
document.getElementById('textarea1').innerHTML=""+values;
IbComposer_execute('report1', 'report1');
}
//End function listbox2_onclick
The manual is rather terse: Syntax: How to Execute a Report or Chart
IbComposer_execute('reportID', ['outputTarget']);
where:
reportID Alphanumeric
Is the unique identifier of the report or chart to execute.
outputTarget Alphanumeric
Is the optional parameter to set the target of the output. Is one of the following: ■ The name of a frame. ■ '_blank'. ■ '_target'. ■ The name of a new window.
function button3_onclick(ctrl) { IbComposer_execute('report1', 'newwin'); }
It's clear that reportID is supposed to be the ID attribute of a 'report' or 'chart' object, something locatable in the HTML DOM (as opposed to, say, the name of a fex that ultimately produces the output), and displayable/modifiable in the properties box of an object. Someone please explain, exactly what kind of object is that?
Posts: 1925 | Location: NYC | In FOCUS since 1983 | Registered: January 11, 2005
I added a button to a blank HTML page. I created an onclick event. I added execution of IbComposer_execute in the function for this event. Saved the file. Ran the file. Clicked the button - nothing happens.
The first argument of IbComposer_execute() is supposed to be the "unique identifier" (ID attribute in the property box) of a "report" or "chart" object that you have added to the page -- which would thus, in the generated code, be an ID attribute that javascript functions can locate in the DOM.
Not clear to me how to insert into a launch page a "report", that I expect to open in a new window, without its taking up real-estate on the launch page.
But if the identifier value you code is nothing more that the name of a fex, it cannot operate.
Posts: 1925 | Location: NYC | In FOCUS since 1983 | Registered: January 11, 2005
Function: IbComposer_execute How to: Execute a Report or Chart The IbComposer_execute function executes a report or chart. Syntax: How to Execute a Report or Chart IbComposer_execute('reportID', ['outputTarget']); where: reportID Alphanumeric Is the unique identifier of the report or chart to execute. outputTarget Alphanumeric Is the optional parameter to set the target of the output. Is one of the following: The name of a frame. '_blank'.
Why the optional "name of a frame" when it's the name of the frame we must put in 'the unique identifier of the report or chart to execute'?
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
Yes it is kind of redundant but we can overwrite the predefined target window/frame in the request tag with this Optional frame name...for example ...if the checked radio box is PDF then run the request in new window or run it in the same frame.
Originally posted by Francis Mariani: Very confusing: Why the optional "name of a frame" when it's the name of the frame we must put in 'the unique identifier of the report or chart to execute'?
The "name of the frame" is another frame that you may choose to send the report output to - over-riding the "regular" frame.
Regards
Stuart
WebFOCUS 8.2.03 (8.2.06 in testing)
Posts: 253 | Location: Melbourne, Australia | Registered: February 07, 2007
Sashanka, your comment about PDF is very interesting. You're suggesting we can modify the default behaviour of the Run button by deciding where to run the report depending on the selected report format. I will experiment with this, thanks.
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
@Francis, We recently did an upgrade and i am currently working on the same line of code you have written in this program,i had to change the function below to fix it: function tabSaved_onclick(ctrl) { // Clean up message iframe (may contain a "Saved parameters" message $('#frmMsg').contents().find('html').html('');
Had to write the IbComposer_execute('frm_saved_reports','frm_saved_reports') in place of IbComposer_execute('frm_saved_reports') to redirect the output to the Frame, else by default it was opening the frame result in the new window.
Even though the Iframe target was 'frm_saved_reports'.
This thread helped.
Webfocus 8105,8808,7703,7611, EXL2K,HTML,PDF,COMT,AHTML Info Assist+ , Reportcaster