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.
First let me say I'm learning HTML and WebFocus self-serve application development as I go along.
What I'd like to do is emulate the Demo from the IBI website that allows a user to click on an image to select output (HTML, GRAPH, PDF, EXCEL). I'd like to allow my users to select HTML,EXCEL or PDF.
I've viewed the source and tried to set up my HTML accordingly. The following is my code and html.
I would greatly appreciate any guidance on this topic that you can offer.
Thanks V
Focexec: TABLE FILE BU01TB10 SUM JANUARY FEBRUARY MARCH APRIL MAY JUNE JULY AUGUST SEPTEMBER OCTOBER NOVEMBER DECEMBER BY CD_CNTL_ENTITY BY CD_BDGT_AREA BY CD_PROJECT BY CD_COST WHERE CD_PROJECT EQ '&PROJIS' WHERE CD_BDGT_AREA EQ '&BAIS' WHERE CD_COST EQ '&CCIS' ON TABLE SET STYLE * ENDSTYLE ON TABLE PCHOLD FORMAT '&OUTPUTIS' END
It is convenient to use JavaScript for launching WebFOCUS report from the HTML page. I am usually using something similar to the following "skeleton" of the page:
... <script type="text/javascript"> ... function runReport(outfmt) { var frm = document.getElementById("runForm"); ... frm.OUTFMT.value = outfmt; ... frm.submit(); } ...
There are plenty ways for running WebFOCUS reports, and mixing it with HTML, JavaScript, ASP, PHP, Java/JSP etc., it is just a simple example.
The error message you receive is the result of mismatching names of the parameters within the form and the report: Report: &OUTPUTIS Form: document.RUNFORM.OUTPUT
Hope this helps GrzegorzThis message has been edited. Last edited by: <Mabel>,
I changed my Focexec to match my variable names... ON TABLE PCHOLD FORMAT '&OUTFMT'
I don't have my HTML right yet...... I've changed it to what I think it needs to be based upon GRZEGORZ reponse to my request for assistance..... But that leaves me with questions...
How does it know to submit my focexec named BUD0030 ?
AND
I get this error.... WebFOCUS was called with an invalid request.
Project Information Reporting
<script type="text/javascript">
function runReport(outfmt) { var frm = document.getElementById("runForm");
frm.OUTFMT.value = outfmt; frm.submit(); }
face="Arial" size=4 color="red">Budget Information System Selection for Project Detail
Hey..... I finally got it to work...... not quite the same way.... I backed off and used radio buttons to select the output format... But it still offers my users flexibility for the display of their reports .
Thanks for the help..... and if anyone is interested in doing this I'll be glad to offer examples.......
Posts: 132 | Location: Kansas | Registered: November 12, 2003
It was actually very easy once I backed off and just used radio buttons........ If you get it to work where you can actually click on the image and submit the form let me know ...... that's what I REALLY wanted to do....... But I think my users will still like this.....
Code: TABLE FILE CAR PRINT DEALER_COST RETAIL_COST BY COUNTRY BY CAR ON TABLE SET STYLE * ENDSTYLE ON TABLE PCHOLD FORMAT '&OUTFMT' END
HTML
Test Reporting
This message has been edited. Last edited by: <Mabel>,
Posts: 132 | Location: Kansas | Registered: November 12, 2003