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] document composer passing parameters

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] document composer passing parameters
 Login/Join
 
Gold member
posted
hello team,

I have two fex files one is having code which I took from the doucment composer and the other is the report fex data/code.

File1 code:

  -SET &CARS='JAGUAR'; 
 
-* File Doc_Com
-* Default Mode: ResourceLayout
SET HTMLARCHIVE=ON
COMPOUND LAYOUT PCHOLD FORMAT PDF
UNITS=IN, $
SECTION=section1, LAYOUT=ON, METADATA='0.5^0.5^0.5^0.5^1', MERGE=OFF, ORIENTATION=LANDSCAPE, PAGESIZE=A4,  $
PAGELAYOUT=1, NAME='Page layout 2', text='Page layout 2', TOC-LEVEL=0, BOTTOMMARGIN=0.5, TOPMARGIN=0.5, ORIENTATION=LANDSCAPE, METADATA='BOTTOMMARGIN=0.5,TOPMARGIN=0.5,LEFTMARGIN=0,RIGHTMARGIN=0,ORIENTATION=LANDSCAPE,', $
COMPONENT='report1', TEXT='report1', TOC-LEVEL=2, POSITION=(0.875 0.167), DIMENSION=(11.250 2.915), METADATA='Z-INDEX: 100; LEFT: 0.875in; OVERFLOW: auto; WIDTH: 11.25in; POSITION: absolute; TOP: 0.167in; HEIGHT: 2.915in', $
COMPONENT='report2', TEXT='report2', TOC-LEVEL=2, POSITION=(0.885 2.354), DIMENSION=(11.250 4.169), METADATA='Z-INDEX: 101; LEFT: 0.885in; OVERFLOW: auto; WIDTH: 11.25in; POSITION: absolute; TOP: 2.354in; HEIGHT: 4.169in', $
END
SET COMPONENT='report1'
-*component_type report
-INCLUDE rxconred/app/vijayatest.fex
SET COMPONENT='report2'
-*component_type report
-INCLUDE rxconred/app/vijayatest.fex
COMPOUND END




File2 Code:

 


TABLE FILE CAR
SUM DEALER_COST
BY CAR
WHERE CAR EQ '&CARS'
ON TABLE PCHOLD FORMAT PDF
END 


What am looking here is the variable &CARS am passing a value lets say "JAGUAR" to its reports called vijayatest.fex. So, here the same fex has been called couple of times in my File 1 code. I'm trying to pass a value which will filter the data and open a PDF compound report. but am not getting a PDF ouput am getting the following message
  0 NUMBER OF RECORDS IN TABLE=        2  LINES=      1



Please let me know the way am passing webfocus variable values or parameters to its compound reports are correct or not

This message has been edited. Last edited by: <Kathryn Henning>,
 
Posts: 78 | Registered: January 07, 2008Report This Post
Master
posted Hide Post
Share the code of vijayatest.fex procedure.
 
Posts: 542 | Location: Dearborn, MI | Registered: June 03, 2009Report This Post
Gold member
posted Hide Post
Sorry! the file2 code nothing but,
  TABLE FILE CAR
SUM DEALER_COST
BY CAR
WHERE CAR EQ '&CARS'
ON TABLE PCHOLD FORMAT PDF
END 



WebFOCUS 7.6.10
Windows
Output: Excel,PDF
 
Posts: 78 | Registered: January 07, 2008Report This Post
Guru
posted Hide Post
This works just fine for me.

But... does that -SET &CARS statement in your code have a space before it? It shouldn't.

In any case, to determine what's going on in your code set &ECHO to ALL or something that will display error codes. Then you'll know what's going on.


WF 8.1.05 Windows
 
Posts: 333 | Location: Orlando, FL | Registered: October 17, 2006Report This Post
Guru
posted Hide Post
Make sure that your included FEXes do NOT have a -EXIT in them.

This will be included in the compund document and cause it to stop.

Also try changing the included FEX to format HTML and see if that makes a difference

Cheers

Stu


WebFOCUS 8.2.03 (8.2.06 in testing)
 
Posts: 253 | Location: Melbourne, Australia | Registered: February 07, 2007Report 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] document composer passing parameters

Copyright © 1996-2020 Information Builders