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     [CLOSED] See the result of a define

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] See the result of a define
 Login/Join
 
Platinum Member
posted
I've got a define:

DEFINE FILE BASELINE
CLRTYP/A500='<td align=left x:num x:fmla=''=SUMPRODUCT(--('||''''Detail - Last 90 Days''''||'!D10:D50000=(LEFT((T(INDIRECT("A" & ROW()))),(FIND(" /",(T(INDIRECT("A" & ROW())))))-1))))''>0</td>';
END


Right now, this is not working, and as a result, the EXL2K worksheet it contains does not export. As a result, I don't get a error message from WebFOCUS or Excel telling me what was wrong with the define.

Is there anyway to get the result of a define, similar to the -TYPE command so that I can debug this?

Thank you.

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


Production - 7.6.4
Sandbox - 7.6.4
 
Posts: 241 | Location: Bethesda, MD | Registered: August 14, 2007Report This Post
Expert
posted Hide Post
Print it in a report with the output in html and do a view source.


Ginny
---------------------------------
Prod: WF 7.7.01 Dev: WF 7.6.9-11
Admin, MRE,self-service; adapters: Teradata, DB2, Oracle, SQL Server, Essbase, ESRI, FlexEnable, Google
 
Posts: 2723 | Location: Ann Arbor, MI | Registered: April 05, 2006Report This Post
Platinum Member
posted Hide Post
I'm not creating my own functions.

I'm passing out a formula as HTML so that the forumla is in the cell, but the result of the formula is what is displayed.

The requirement from my customer was for the totals to be forumlas so that if they change or delete the data on their report, the totals will update automatically.

It has been an interesting project, but very frustrating trying to get WebFOCUS to work this way.


Production - 7.6.4
Sandbox - 7.6.4
 
Posts: 241 | Location: Bethesda, MD | Registered: August 14, 2007Report This Post
Expert
posted Hide Post
ah, it just seems that ON TABLE PCHOLD FORMAT EXL2K FORMULA isn't really enough, so you're writing your own formula, which i didn't know was possible.




In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
 
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003Report This Post
Virtuoso
posted Hide Post
If you want to diplay the values of the defined field, in HTML output, change '<' and '>' to '&lt;' and '&gt;' via STRREP.

I believe your error is in
''''Detail - Last 90 Days''''

-- change the four quotes on each side to three.


- Jack Gross
WF through 8.1.05
 
Posts: 1925 | Location: NYC | In FOCUS since 1983 | Registered: January 11, 2005Report This Post
Virtuoso
posted Hide Post
Alternatively, do a HOLD FORMAT ALPHA iso EXL2K and inspect the resulting hold file.
And I think it should be something like:
CLRTYP/A500=
'<td align=left x:num x:fmla=''=SUMPRODUCT(--("Detail - Last 90 Days"!D10:D50000=(LEFT((T(INDIRECT("A" & ROW()))),(FIND(" /",(T(INDIRECT("A" & ROW())))))-1))))''>0</td>';

You have to separate the double quotes from the single ones, you just can't mix them and expect whatever product to understand what you want.
In this particular case, the x:fmla string is denoted by single quotes. That means that you can not use any other single suote within the definition of the x:fmla, because that would mean the end of the string. Each quote within that string has to be a double one.


GamP

- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
 
Posts: 1961 | Location: Netherlands | Registered: September 25, 2007Report This Post
Expert
posted Hide Post
Go back to basics and comprehend what FORMAT EXL2K produces - XMLNS output and not Excel Binary. This means that with a good editor package you can view the output as text.

T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
 
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004Report This Post
<JG>
posted
The problem is you can not insert a formula directly with WebFOCUS by giving it open and close TD tags

Try changing the code like this (I assume your formula is correct)


  
DEFINE FILE BASELINE 
CLRTYP/A500='</td><td x:num x:fmla=''=SUMPRODUCT(--('||''''Detail - Last 90 Days''''||'!D10:D50000=(LEFT((T(INDIRECT("A" & ROW()))),(FIND(" /",(T(INDIRECT("A" & ROW())))))-1))))''>0'; 
END



Take a look at this post
[SOLVED] Excel Formula

You will need a macro to handle the formating
 
Report This Post
Virtuoso
posted Hide Post
quote:
You have to separate the double quotes from the single ones


You can hve single and/or double quotes in the desired output value.

Start with the string that you need to produce, and decorate it as needed to construct a correspondng WF Define expression:

If it's all constant, double any single-quotes, and wrap the whole thing in single-quotes; and you should not need any catenation.

If you need to imbed a WF field in the outpout value, it goes outside the quotes, and needs a | or || WF catenation operator to connect it to the adjacent string consant(s).


- Jack Gross
WF through 8.1.05
 
Posts: 1925 | Location: NYC | In FOCUS since 1983 | Registered: January 11, 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     [CLOSED] See the result of a define

Copyright © 1996-2020 Information Builders