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 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, 2007
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, 2007
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
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.
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, 2007