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 have created a summary procedure with two drill downs to a detail procedure. You have two choices to the detail procedurs, one to EXCEL and one to HTML. However I want the EXCEL to output without the style sheet and HTML with a style sheet.
Is that possible? I am fairly new to this , i have try to search for this answer.This message has been edited. Last edited by: Kerry,
7.6.2
Posts: 20 | Location: 7.6.2 | Registered: November 04, 2008
I assume that you use an &variable to set the format. If that is the case just add -IF &format EQ 'EXL2K' GOTO label; before the ON TABLE SET STYLE and branch to the label after the ENDSTYLE.
Alternatively use FORMAT EXCEL this will generate a binary .XLS file with just the data and column headings.
I think I am getting closer. But no matter what i do it keeps running only one style
My code is like this: ON TABLE PCHOLD FORMAT '&PARM_WFORMAT' -IF '&PARM_WFORMAT' EQ 'EXL2K' GOTO excelabel; -IF '&PARM_WFORMAT' EQ 'HTML' GOTO htmllabel; -htmllabel; style sheet commands for html ON TABLE SET STYLE * .... ENDSTYLE -excelabel; no style sheet for excel ON TABLE SET STYLE * .... ENDSTYLE END
IT keeps running the excel with no style sheet.
I am sure it is my lack of knowledge, but I have to learn as a produce reports.
7.6.2
Posts: 20 | Location: 7.6.2 | Registered: November 04, 2008
Labels do not end with a ; it should be simply -excelabel
Also you need a -GOTO LABEL after the first style block so that you skip the second
ON TABLE PCHOLD FORMAT '&PARM_WFORMAT'
-IF '&PARM_WFORMAT' EQ 'EXL2K' GOTO excelabel;
-IF '&PARM_WFORMAT' EQ 'HTML' GOTO htmllabel;
-htmllabel
style sheet commands for html
ON TABLE SET STYLE *
....
ENDSTYLE
-GOTO GOTSTYLE
-excelabel
no style sheet for excel
ON TABLE SET STYLE *
....
ENDSTYLE
-GOTSTYLE
END
I did what you said and no matter what it is still display with still. It doesn't look like it is even going to the excelformat. I turned on my excel trace and I got this;
ON TABLE PCHOLD FORMAT 'EXL2K' -IF 'EXL2K' EQ 'EXL2K' GOTO excelabel; -IF 'EXL2K' EQ 'HTML' GOTO htmllabel; -htmllabel ON TABLE SET STYLE *
It looks like it is still going to the -htmllabel
In the trace it never goes to -excelabel;
It shows that it is 'EXL2K' . but it doesn't acknowledge the GOTO of my condition.
7.6.2
Posts: 20 | Location: 7.6.2 | Registered: November 04, 2008
Noveta, In Developer Studio 76, there is a style block option that will allow you to assign style options to specific output types. It is a little cleaner then the suggestions in this thread, and you can stay in the GUI to do it. You should look into it.
"There is no limit to what you can achieve ... if you don’t care who gets the credit." Roger Abbott