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.
One work around would be to define or -SET the ampersand as a variable and concatenate the variable in your second line.
-SET &R='&';
(now your DEFINEs will have to be.....)
FLD1/A250='<td align=left x:num x:fmla="=SUMPRODUCT((E10:E1740=T(INDIRECT("A"' || &R || 'ROW())))*(F10:F1740=T(INDIRECT("B"' || &R || 'ROW()))))">0</td>';
Sandeep Mamidenna
------------------------------------------------------------------------------------------------- Blue Cross & Blue Shield of MS WF.76-10 on (WS2003 + WebSphere) / EDA on z/OS + DB2 + MS-SQL MRE, BID, Dev. Studio, Self-Service apps & a dash of fun !!
Posts: 218 | Location: Jackson, MS | Registered: October 31, 2006
In the example above, make sure you use the strong concatenation symbol (||) not the weak one (|), to eliminate any unnecessary spaces.
------------------------------------------------------------------------------------------------- Blue Cross & Blue Shield of MS WF.76-10 on (WS2003 + WebSphere) / EDA on z/OS + DB2 + MS-SQL MRE, BID, Dev. Studio, Self-Service apps & a dash of fun !!
Posts: 218 | Location: Jackson, MS | Registered: October 31, 2006
Otherwise DEFINE will think & is the name of a Focus field.
(in fact you don't need &R at all -- '&', quotes included, is fine by itself.)
Another tack is to code a substitute character (say, ^), and then use CTRAN in a second define to transform it to &. That will be easier to code and to desk-check.This message has been edited. Last edited by: j.gross,
- Jack Gross WF through 8.1.05
Posts: 1925 | Location: NYC | In FOCUS since 1983 | Registered: January 11, 2005
The value stored in FLD1 is as below. Note my understores, indicating paired double-quotes and the content between them. Obviousy, there's a conflict between the outer double-quotes for x:fmla="..." and the inner ones around A and B (that's the basis of the error message, and the chunk of code quoted therein).
You need to change the outer ones to single quotes (coded in Focus as pairs of apostrophes), or escape the inner ones as \" (I think html respects that).
Assuming the formula is correct, it seems like the first suggestion by jimster06 is correct.
This
DEFINE FILE CAR
FLD1/A250='<td align=left x:num x:fmla="=SUMPRODUCT((E10:E1740=T(INDIRECT("A"&|ROW())))*(F10:F1740=T(INDIRECT("B"&|ROW()))))">0</td>';
END
Evaluates to this:
DEFINE FILE CAR
FLD1/A250='<td align=left x:num x:fmla="=SUMPRODUCT((E10:E1740=T(INDIRECT("A"&ROW())))*(F10:F1740=T(INDIRECT("B"&ROW()))))">0</td>';
END
Francis
Give me code, or give me retirement. In FOCUS since 1991
Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
You need three sets of nested quotes: (1) outermost, the string indicator for Focus DEFINE (single quotes) (2) next, in HTML, delimiting the value for xfmla (single or double quotes) (3) innermost, in the Excel formula, within the arg of INDIRECT() (double quotes)
To avoid conflicts, use single-quotes for #2 -- escaping them (within the outer single-quotes) by coding pairs of single quotes -- thus: