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 set up this sort field in the DEFINE: SORTFIELD/I1=IF FIELD EQ 'A' THEN 0 ELSE IF FIELD EQ 'B' THEN 1 ELSE IF FIELD EQ 'C' THEN 2 ELSE IF FIELD EQ 'C' THEN 3 ELSE IF FIELD EQ 'D' THEN 4 ELSE IF FIELD EQ 'E' THEN 5 ELSE IF FIELD EQ 'F' THEN 6 ELSE IF FIELD EQ 'G' THEN 7 ELSE 8; And then I put this in my TABLE: ACROSS XCOLUMN NOPRINT BY SORTFIELD NOPRINT BY XPAGE NOPRINT BY XROW NOPRINT ON XPAGE PAGE-BREAK Without the "BY SORTFIELD NOPRINT", it displays 2 columns side by side. With the "BY SORTFIELD NOPRINT", it displays the first column fine but in the second column it adds 5 blank cells and then displays the field values.
I am somewhat of a newbie to WebFocus. All I know is that when I use that syntax I get what I need which is the 2 columns of links without titles--that is what the customer wanted. Is there a better way of doing this?
I have no idea what the other code looks like, BUT, here is an example from CAR with 2 columns as links and no titles:
SET NODATA = ' '
TABLE FILE CAR
SUM
SALES AS ''
COMPUTE FLAG/A1 = IF COUNTRY EQ 'JAPAN' AND SALES NE 0 THEN '1' ELSE
IF COUNTRY NE 'JAPAN' AND SALES NE 0 THEN '2' ELSE '3'; NOPRINT
BY COUNTRY AS ''
ON TABLE SET HTMLCSS ON
ON TABLE SET PAGE-NUM OFF
ON TABLE SET STYLE *
TYPE=DATA, COLUMN=N2, URL=http://www.YAHOO.com, WHEN=FLAG EQ '1',$
TYPE=DATA, COLUMN=N2, URL=http://www.GOOGLE.com, WHEN=FLAG EQ '2',$
TYPE=DATA, COLUMN=N2, URL=http://www.cnn.com, WHEN=FLAG EQ '3', COLOR=GREEN,$
TYPE=DATA, COLUMN=N1, URL=http://www.informationbuilders.com, COLOR=FIREBRICK, WHEN=FLAG EQ '1', TARGET=_blank,$
TYPE=DATA, COLUMN=N1, URL=https://forums.informationbuilders.com/eve/forums, COLOR=NAVY BLUE,WHEN=FLAG NE '1', TARGET=_blank,$
ENDSTYLE
END
-EXIT
Hope this helps, if it is what you are looking for...
I suspect the XROW is contributing to the extra blank cells. I assume XROW is a DEFINE field as well? XROW will be calculated for every record pulled from the database BEFORE the SUM is processed. Therefore, even though it looks like certain records should be added together, you are forcing them to be treated as individual records due to the BY XROW.
Take the NOPRINT off the BY XROW statement and you will probably see this to be the issue.
Thanks!
Mickey
FOCUS/WebFOCUS 1990 - 2011
Posts: 995 | Location: Gaithersburg, MD, USA | Registered: May 07, 2003