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     [SOLVED] Excel Formula

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Excel Formula
 Login/Join
 
Gold member
posted
Hi,

I tried to use the FORMAT EXL2K FORMULA function to edit an Excel Report containing a formula but it's not the good solution. I simply want that my column is displayed as a formula and not as a text cell.

DEFINE FILE MYTAB
TESTBLOOM/A60 = '=BDP("223727Z FP Equity","NAME");
END
  
TABLE FILE MYTAB
PRINT
TESTBLOOM
ON TABLE PCHOLD FORMAT EXL2K FORMULA
END

This message has been edited. Last edited by: Kerry,


WebFOCUS 7.6.4 running on Windows
Output formats : PDF, Excel and HTML
My blog
 
Posts: 61 | Location: Luxembourg | Registered: October 31, 2007Report This Post
Virtuoso
posted Hide Post
As far as I know this only works with very basic formulas like row and column totals.

What excel formula would you expect in this case?
Did you try this with a COMPUTE in the fex instead of a defined field?

(I never use this myself)




Frank

prod: WF 7.6.10 platform Windows,
databases: msSQL2000, msSQL2005, RMS, Oracle, Sybase,IE7
test: WF 7.6.10 on the same platform and databases,IE7

 
Posts: 2387 | Location: Amsterdam, the Netherlands | Registered: December 03, 2006Report This Post
Gold member
posted Hide Post
In fact I'm working with the Bloomberg API for Excel. I'm making reports with data extracted from my database. The BDP function is a Bloomberg API function for Excel. So I want a column with this formula : =BDP("my equity","my Bloomberg field").
With Webfocus, I generate a column with this formula but Excel doesn't consider it like a formula.


WebFOCUS 7.6.4 running on Windows
Output formats : PDF, Excel and HTML
My blog
 
Posts: 61 | Location: Luxembourg | Registered: October 31, 2007Report This Post
<JG>
posted
Jérény

In order to insert a formula directly into a cell you must actually create the cell compleate with tags and style.

It is unfortunate that it will generate a blank column but you could remove that using a template macro.

Basic method is close the cell using a TD tag and then write the complete formula including it's css class
and format. The class can be omitted Completely but then you will have an un-styled cell

 
	  COMPUTE CALC2/A100='</TD><TD class=xl100 x:fmla=''=BDP("223727Z FP Equity","NAME")''>'; 



To know exactly which class you need HOLD the EXL2K FORMULA instead of PCHOLDing it
And look at it in a text editor and pick one of the generated class blocks that meets your needs
Or apply the style via a template/macro.
 
Report This Post
Virtuoso
posted Hide Post
I don't know a lot about using classes and such, but JG's solution looks likesomething you will have to use. The problem is that what you are defining is not a formula, it is simply a text string. As far as WF knows, what you are putting in there is "ABCDEFG." So when you output to EXL2K FORMULA it will only display the string as a text string. (You're also missing your ending quote mark.) In order to be a formula, there has to be some computation involved used fields displayed on the report. Anything else will just be displayed as the computed value of your expression, which is what you're getting.


Regards,

Darin



In FOCUS since 1991
WF Server: 7.7.04 on Linux and Z/OS, ReportCaster, Self-Service, MRE, Java, Flex
Data: DB2/UDB, Adabas, SQL Server Output: HTML,PDF,EXL2K/07, PS, AHTML, Flex
WF Client: 77 on Linux w/Tomcat
 
Posts: 2298 | Location: Salt Lake City, Utah | Registered: February 02, 2007Report This Post
<JG>
posted
COMPUTE CALC2/A100='</TD><TD class=xl100 x:fmla=''=BDP["223727Z FP Equity","NAME")''>';

Just a note, this method of inserting a formula works equally well with EXL2K and EXL2K FORMULA
 
Report This Post
Gold member
posted Hide Post
Hi JG,

Could you give me an example of how to hide a column in EXCEL FORMULA format (not a template).

This message has been edited. Last edited by: KK,


Test - Webfocus 7.6.7
Prod - Webfocus 7.6.7
Win2003
Sql Server 2000 and 2008
 
Posts: 59 | Registered: May 01, 2007Report This Post
<JG>
posted
KK using pure WebFOCUS it is not possible to hide an Excel column or row.

The only way you can do it is by using a macro applied via a WebFOCUS template.
 
Report This Post
Platinum Member
posted Hide Post
I was trying display wrapped text in Excel which concatenate 2 columns and wrap it:

DEFINE FILE OUTPUT
COL_NEW/A50='="' | COL_A | '" &| CHAR(10) &| "' | COL_B | '"';
END

But webfocus complains about the ampersand character. I tried both & and &|. None of them works. Any idea?


7.66 and 7.704
System: Windows / AIX / Linux
Output: Mostly HTML, with some PDF, Excel and Lotus(!)
 
Posts: 147 | Location: Toronto (GTA) | Registered: May 25, 2005Report 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     [SOLVED] Excel Formula

Copyright © 1996-2020 Information Builders