Focal Point Banner


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.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     WebFocus/HTML to submit reports by clicking on an image

Read-Only Read-Only Topic
Go
Search
Notify
Tools
WebFocus/HTML to submit reports by clicking on an image
 Login/Join
 
Platinum Member
posted
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


HTML CODE FOR IMAGE SELECTION:
<td valign=middle align=center><b>HTML</b><br>
<input type="image" id=HTMLReport value="HTML"
name="OUTPUTIS"
src="http://webfocus/ibi_html/TestVBIS/gifs/HTML.bmp" valign="middle" align="center" ALT="HTML"
*****="document.RUNFORM.OUTPUT.value='HTML'" >
</td> "

***** = ONCLICK .... I couldn't get it past forum restrictions any other way....

I get the following error:
0 ERROR AT OR NEAR LINE 18 IN PROCEDURE BUD00030FOCEXEC *
(FOC295) A VALUE IS MISSING FOR: OUTPUTIS


Thanks again for any help you can offer ......
 
Posts: 132 | Location: Kansas | Registered: November 12, 2003Report This Post
<Grzegorz>
posted
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();
}
...



...
action="/ibi_apps/WFServlet"
method="post">



...

..
onclick="runReport('GRAPH')"/>
onclick="runReport('HTML')"/>



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
Grzegorz

This message has been edited. Last edited by: <Mabel>,
 
Report This Post



Platinum Member
posted Hide Post
Thanks for the help ..... But I'm still stuck....

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




























Select Budget Area:
Select Cost Code:
Select Project:





















HTML

ALT="HTML" onClick="runReport('HTML')"/>

Excel

ALT="Excel" onClick="runReport('EXCEL')"/>
PDF

ALT="PDF" onClick="runReport('PDF')"/>





onClick="document.RUNFORM.OUTPUT.value='REPORT'" >







This message has been edited. Last edited by: <Mabel>,
 
Posts: 132 | Location: Kansas | Registered: November 12, 2003Report This Post
Platinum Member
posted Hide Post
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 Big Grin .

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, 2003Report This Post
<mhuber>
posted
I'm interested in your solution.

If you can reproduce a simple example with CAR or MOVIES, that would be great!

Thanks,
Michael
 
Report This Post



Platinum Member
posted Hide Post
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









Selection for Output Information



< !-- ******************************************************************-->











































































 

HTML



 

EXCEL



 

 



 

PDF



 







onClick="document.RUNFORM.OUTPUT.value='REPORT'" >





< !-- ******************************************************************-->






This message has been edited. Last edited by: <Mabel>,  
Posts: 132 | Location: Kansas | Registered: November 12, 2003Report This Post
Expert
posted Hide Post
kudos! thats very cool!
 
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     WebFocus/HTML to submit reports by clicking on an image

Copyright © 1996-2020 Information Builders