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 need a bit of help. I have a report that contains many frames and no submit button. The initial frames (I'll call them F1 and F2) are populated by executing the fex onload. Inside of one of the frames (F1) a drill down is enabled. This drill down goes to a third frame (F3) which also has a drill down. My desire is for the user to be able to select Excel, PDF or HTML as their output of choice (in addition to deciding whether or not the last frame (F5) is to be opened in a new window or not). All of my reports have a submit except for this one and I use simple html code to pass the option parms to the fex. I am stumped however on how to code the option for the user when they have reached the F3. The check box and pull-down list are in a seperate frame (F4). I use JS extensively and I have seen a fex that has an inline Javascript call in its drill down. I am not sure however where the .js or script is to be located for such a use. So instead of the normal submit button calling js to determine the status of the check box and pull down, I need to be able to check the status of F4's controls from F5 before F5 renders its' output from the fex.
Don, if you're running on a windows server platform and running ISAPI not servlet, you can teach your end users to right clickon any html table output, a menu pops up, select "export to excel", and bingo you're done. works like a charm. much better than the xml viewer you get with pchold format ...; If you have a self-serv app, you can override your servlet default setting easily, and use isapi instead. but if not... then You can write your fex with the choice to rerun the fex in either pdf or excel by offering those choices in the header of your fex, and each choice is a drilldown to rerun the same fex with a different output type. eg: TABLE FILE CAR do stuff ON TABLE HOLD AS MYOUTUT FORMAT HTMTABLE END -RUN -HTMLFORM BEGIN [HTML> [!-- WEBFOCUS TABLE MYOUTPUT --> [/HTML> -HTMLFORM END ---------------- ok so far? you know the [ are really left brackets, right? now, in your fex, write a heading HEADING "PICK YOUR OUTPUT TYPE" "PDF EXCEL " ...blah blah blah and in your stylesheet TYPE=HEADING,LINE=2,ITEM=1,FOCEXEC=myfex(OPTION=PDF ....etc),$ TYPE=HEADING,LINE=2,ITEM=2,FOCEXEC=myfex(OPTION=EXCEL....etc),$ ok so far? now in your fex, you have some variable -DEFAULT &OPTION = 'HTML'; and in the fex code you set your output however you want to, according to the value of the &OPTION variable. Howzat?? send me a PM if you need more help; i may not stop back this way for a while.
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003
Thank you very much for the reply! We are running 536 on USS in a Z/OS environment. I think your post is quite accurate on the end result and will provide a good solution to many that read it. Unfortunately your remedy is actually the design that my current report exists in. I am trying to provide only a pull down and check box for the users to interface with as my original report utilized the multiple drill down HTML, EXCEL and PDF choices that you described. We find the style with multiple hyperlinks to be a bit messy and desire to clean up the appearence of the report. I am hoping to only have the inclusion of the data drill down itself merge with the user's ability to select their report output with a pull down choice of HTML, EXCEL and PDF and a checkbox to denote whether or not the report is to open in a new window. I am hoping that your suggestion and my original format is not the only way to give the user options for output once they have reached the middle level drill down of the report. Just the same, thanks a ton for taking time to help!
ok, how about a cute little drop down box with each dd value being a url to the cgi. you're gonna have to rerun the fex to change the output format...this you know, right? if you want the javascript code to do that, send me a pm with your email address and i'll zip it over to you. [ I can't put left carets in this bbs.] or... how about this. make a directory on your server for every single user [you already hate this, right?], use the &IBMRE_user field to name it. Then in every fex, before you give the output over to html, filedef a pdf version, save it in pdf to this directory FILEDEF MYPDF DISK D:\username\MYPDF.PDF then do the same thing in excel THEN.finally..send the output to their browser. now..no matter WHERE your user is in the dd's, they'll have just made and excel version and a pdf in their own secret directory. now you can have any link you like, anywhere you want, that will always go get something called MYPDF or MYEXCEL. This is very mainframe way of thinking. but hey, it might work for you.
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003
say Don, there's a thread a few down "WebFocus/HTML to submit reports by clicking on an image " that is vedy vedy interesting and i think the solution offered there might be just what you want. you'ld essentially be building the output of each of your dd's to contain a form with the submit button being the pdf or excel image. then you pass the variable parms to the repeat execution of the fex by writing HTML form code and passing your parm values as type hidden...see then you don't have to figure out how to pass that & character! very clever!
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003