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] Blocked Design versus focexec

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[Closed] Blocked Design versus focexec
 Login/Join
 
Gold member
posted
Hi all,

I have to show the data of column COUNTRY as greyed block like it works witout the commented focexec call in the fex below.
If I uncomment the focexec line the COUNTRY block was shown with a border after every CAR.

Is there a possibility to show the border only if the COUNTRY changes?

Thank you very much


The code for the "main" fex:
TABLE FILE CAR
  PRINT
    CAR
    MODEL
  BY COUNTRY
-*
  ON TABLE SET PAGE-NUM OFF
  ON TABLE NOTOTAL
  ON TABLE SET HTMLCSS ON
  ON TABLE PCHOLD FORMAT HTML
  ON TABLE SET STYLE *
-*
  UNITS=IN, SQUEEZE=ON, SIZE = 8, FONT= ARIAL, ORIENTATION=LANDSCAPE,PAGESIZE=A4,
-*
$
  TYPE=REPORT, SIZE=8, FONT = ARIAL,
$
  TYPE=TITLE, SIZE=8, FONT = ARIAL, JUSTIFY = CENTER,
       BORDER-TOP=LIGHT, BORDER-BOTTOM=LIGHT, BORDER-LEFT=LIGHT, BORDER-RIGHT=LIGHT,
       BORDER-TOP-COLOR=WHITE, BORDER-BOTTOM-COLOR=WHITE, BORDER-LEFT-COLOR=WHITE, BORDER-RIGHT-COLOR=WHITE,
       COLOR=WHITE, BACKCOLOR=RGB(240 78 45),
-*
$
  TYPE=DATA, SIZE=8,  FONT= ARIAL,
       BORDER-TOP=OFF, BORDER-BOTTOM=OFF, BORDER-LEFT=LIGHT, BORDER-RIGHT=LIGHT,
       BORDER-LEFT-COLOR=WHITE, BORDER-RIGHT-COLOR=WHITE, BACKCOLOR=( WHITE RGB(238 238 238) ),
$
-* spalten-inhaltsspezifische Formatierung
  TYPE=DATA,
    COLUMN=COUNTRY,
    BACKCOLOR=SILVER,
    BORDER-BOTTOM=LIGHT,
    BORDER-BOTTOM-COLOR=WHITE,
-*    FOCEXEC=car_country(param1=COUNTRY),
$
END


The code for the called fex:
TABLE FILE CAR
  PRINT
    CAR
    MODEL
  BY CAR
-*
  WHERE COUNTRY EQ ¶m1.QUOTEDSTRING
-*
  ON TABLE SET PAGE-NUM OFF
  ON TABLE NOTOTAL
  ON TABLE SET HTMLCSS ON
  ON TABLE PCHOLD FORMAT HTML
  ON TABLE SET STYLE *
-*
  UNITS=IN, SQUEEZE=ON, SIZE = 8, FONT= ARIAL, ORIENTATION=LANDSCAPE,PAGESIZE=A4,
-*
$
  TYPE=REPORT, SIZE=8, FONT = ARIAL,
$
  TYPE=TITLE, SIZE=8, FONT = ARIAL, JUSTIFY = CENTER,
       BORDER-TOP=LIGHT, BORDER-BOTTOM=LIGHT, BORDER-LEFT=LIGHT, BORDER-RIGHT=LIGHT,
       BORDER-TOP-COLOR=WHITE, BORDER-BOTTOM-COLOR=WHITE, BORDER-LEFT-COLOR=WHITE, BORDER-RIGHT-COLOR=WHITE,
       COLOR=WHITE, BACKCOLOR=RGB(240 78 45),
-*
$
  TYPE=DATA, SIZE=8,  FONT= ARIAL,
       BORDER-TOP=OFF, BORDER-BOTTOM=OFF, BORDER-LEFT=LIGHT, BORDER-RIGHT=LIGHT,
       BORDER-LEFT-COLOR=WHITE, BORDER-RIGHT-COLOR=WHITE, BACKCOLOR=( WHITE RGB(238 238 238) ),
$
-* spalten-inhaltsspezifische Formatierung
  TYPE=DATA,
    COLUMN=COUNTRY,
    BACKCOLOR=SILVER,
    BORDER-BOTTOM=LIGHT,
    BORDER-BOTTOM-COLOR=WHITE,
    FOCEXEC=car_country(prod_art=COUNTRY),
$
END

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


WebFOCUS 7.6, 7.7
Windows, All Output formats
 
Posts: 90 | Location: Stuttgart | Registered: October 20, 2010Report This Post
Expert
posted Hide Post
Slight reversal of thinking behind this -

TABLE FILE CAR
PRINT CAR
      MODEL
      COMPUTE CNTR/I3 = IF COUNTRY EQ LAST COUNTRY THEN CNTR + 1 ELSE 1; NOPRINT
   BY COUNTRY
-*
  ON TABLE SET PAGE-NUM OFF
  ON TABLE NOTOTAL
  ON TABLE SET HTMLCSS ON
  ON TABLE PCHOLD FORMAT HTML
  ON TABLE SET STYLE *
-*
  UNITS=IN, SQUEEZE=ON, SIZE = 8, FONT= ARIAL, ORIENTATION=LANDSCAPE,PAGESIZE=A4, $
  TYPE=REPORT, SIZE=8, FONT = ARIAL, $
  TYPE=TITLE, SIZE=8, FONT = ARIAL, JUSTIFY = CENTER,
       BORDER-TOP=LIGHT, BORDER-BOTTOM=LIGHT, BORDER-LEFT=LIGHT, BORDER-RIGHT=LIGHT,
       BORDER-TOP-COLOR=WHITE, BORDER-BOTTOM-COLOR=WHITE, BORDER-LEFT-COLOR=WHITE, BORDER-RIGHT-COLOR=WHITE,
       COLOR=WHITE, BACKCOLOR=RGB(240 78 45), $
  TYPE=DATA, SIZE=8,  FONT= ARIAL,
       BORDER-TOP=OFF, BORDER-BOTTOM=OFF, BORDER-LEFT=LIGHT, BORDER-RIGHT=LIGHT,
       BORDER-LEFT-COLOR=WHITE, BORDER-RIGHT-COLOR=WHITE, BACKCOLOR=(WHITE RGB(238 238 238)), $
-* spalten-inhaltsspezifische Formatierung
  TYPE=DATA,
    COLUMN=COUNTRY,
    BACKCOLOR=SILVER,
$
  TYPE=DATA,
    COLUMN=COUNTRY,
    BACKCOLOR=SILVER,
    BORDER-TOP=LIGHT,
    BORDER-TOP-COLOR=WHITE,
    FOCEXEC=car_country(param1=COUNTRY), WHEN=CNTR EQ 1, 
$
END

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
  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] Blocked Design versus focexec

Copyright © 1996-2020 Information Builders